Skip to main content

Posts

Showing posts from May, 2022

D365 power automate flow call from ribbon button

  To achieve this, two extra managed solutions are imported into the environment: Ribbon Workbench:  https://ribbonworkbench.uservoice.com/knowledgebase/articles/80806-download-ribbon-workbench-for-crm-2011-2013-2015-2 Develop1 SmartButtons:  https://ribbonworkbench.uservoice.com/knowledgebase/articles/896958-smart-buttons Create  a new flow { "type": "object", "properties": { "id": { "type": "string" } } } { "type": "object", "properties": { "entityname": { "type": "string" } } } Save the flow and copy the URL Open Ribbon Workbench select your solution. Drag and drop the smart button. You can change button text and image into property. Note that for Production and Dev environment flow HTTP host URL can be change. Xrm.Navigation.openAlertDialog({text:"Success message."})

D365 automate flow common formatting

  // Formate Date formatDateTime(items('Apply_to_each_Employee_and_Manager')?['std_contract_end'], 'dd.MM.yyyy') // Get Optionset value Triggeroutputs()?['body/_yourfieldname_label'] //Check Null if(not(equals(items('Apply_to_each_Employee_and_Manager')?['std_probation_until'], null )),formatDateTime(items('Apply_to_each_Employee_and_Manager')?['std_probation_until'], 'dd.MM.yyyy'), null )

FetchXML query order by

 If we want to get the latest created record from an entity we can get it using the FetchXML query order. <fetch top="50"> <entity name="systemuser"> <order attribute="createdon" descending="true" /> </entity> </fetch>

Resource not found for the segment

  Using D365 Flow if you want to insert or update a record then you may get this error. This error was raised because in your entity this is a lookup field and you need to set the value with the lookup entity plural name. Like