Archive
Archive for September 16, 2021
Dataverse | New Text Formats | json, richtext
September 16, 2021
Leave a comment
Text in Dataverse is a data type that can store a max of 4000 characters. Text has multiple formats that instruct the UI to treat it differently.
As an example, Email is a text format tells the client to treat the contents of the field as an email. It can display the data as a link that, when clicked, launches your default email client and inserts the address in the To: field.
There are 2 new formats, json and richtext have been introduced.
Json
- json format will store text strings in a json format.
- This format will not perform any validations on the correctness of the json. It simply allows you to store, view, and retrieve the content with json markup.
- This is currently limited for use on non-SQL tables (like Data Lake).
Richtext
- richtext format will allow the use of markup tags to format your text when viewed in a compatible control.
- By setting this value you can enable richtext for any other text or multiline text column.
- A control is coming soon in the Canvas and Model Driven space that will be used whenever a column indicates it is richtext.
Please refer this article for more details.
🙂
Categories: CRM
Azure DevOps (ADO) | Pipeline failure | Failed to connect to Dataverse
September 16, 2021
Leave a comment
One of my ADO pipelines ‘Power Platform Publish Customizations’ task failed with “Failed to connect to Dataverse” error.
Reason:
- ‘Power Platform Publish Customizations’ task’s ‘Authentication type’ was selected as ‘Username/password’ which does not have MFA support.
- MFA (Multi Factor Authentication) was enabled on the Environment, which I was trying to connect from the Pipeline.
- Since the ‘Power Platform Publish Customizations’ task’s ‘Authentication type’ was selected as ‘Username/password’ which does not support MFA, pipeline could not connect to the Dataverse environment.
Fix:
- Create an ‘Application User’ by completing App Registration in Azure Active Directory and grant a Security Role.
- In the ADO pipeline’s ‘Power Platform Publish Customizations’ task, select ‘Authentication type’ as ‘Service Principal’.
- Make sure the ‘Service Connection’ configured properly with Azure App Registration details (i.e., Tenant ID, Application ID and Client Secret).
- My connection name is ‘SP_ExpAugust21’ and details are as follows.
- Save and run the pipeline and it should work now.
🙂
Categories: DevOps
Dataverse, DevOps, Failed to connect, Pipeline