Welcome to the Power Guide Mentorship Program. Today I am going to share a very important PowerGuideTip18 to all the developers related to the Power Automate and CDS.
I have seen many folks have posted an issue on the community regarding the Power Automate issue while creating/updating records in CDS (Common Data Service).
Resource not found for the segment \’xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\’.
As per the error description, the resource (which means the record with GUID is – \’xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\’) could not be found in CDS.
The issue is due to the lookup field, whose value has not been set correctly.
When you use the Common Data Service (current environment) connector in order to create/update records in Dynamics 365/CDS.
To populate a look up field, we need to specify the plural name of the entity and then the record GUID.
For Example – You are creating a Contact record in Dynamics 365 using Common Data Service (current environment) connector. For that, if you want to set the value in the Account Lookup field then your syntax must be as follow:
For Example – account/67234568-6543-7867-9878-345647898456
Now, this account GUID can be set dynamically as below:
You can get the Plural Name of any entity as follows:
Hope it helps.