Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Creating a booking through Power Automate

Posted on by 30

Hi, 

I am hoping someone can help me. 

Background/Requirement: 

I am trying to create a power automate flow that will automatically create a booking when a work order is created.


Issue: 

When ever I try to create a booking with the work order look up it fails and returns 'URL was not parsed due to an ODataUnrecognizedPathException. Resource not found for the segment provided in the URL'.

There are other mandatory look up fields on the booking entity which are creating no errors with how I creating them... can someone tell me what I am doing wrong please? 


PA Flow:  

pastedimage1662855421873v1.png
 
Create Booking Step: 
1) 
pastedimage1662855483816v2.png

2) 
pastedimage1662855580490v3.png

If I don't add the work order part - I get the 'object not set to an instance of an object' error... which is expected. None of the other look up field give me the 'resource segment'... it's only this work order. 

  • nisar542 Profile Picture
    nisar542 30 on at
    RE: Creating a booking through Power Automate

    Hi Gabriel,

    So simple and was right in front me the whole time.

    Thank you so much Gabriel... this has been a massive massive help!

  • Verified answer
    Gabriel Dias Junckes Profile Picture
    Gabriel Dias Junckes 2,435 on at
    RE: Creating a booking through Power Automate

    Hi.

    The syntax is incorrect. To set the lookup field, you have to add the EntitySetName. E.g. in the work order will be "msdyn_workorders(70816501-edb9-4740-a16c-6a5efbc05d84)"

    The blog post below might be helpful.

    debajmecrm.com/.../

    community.dynamics.com/.../get-entitysetname-with-xrmtoolbox

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans