Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Creating record in CDS using Power Automate flow is getting failed due to Resource not found for the segment

Posted on by 3,962

I created a flow to insert the MS Forms Pro Survey response variable data to CDS but getting the error "Resource not found for the segment " Question field. When removing the value in Question field it creates the record but it is not getting associated with the respective question column. Can anyone able to help me on this.

CDS error message.jpgCDS flow activity.jpg

  • RE: Creating record in CDS using Power Automate flow is getting failed due to Resource not found for the segment

    Thanks @Syndicate_Admin. I changed the activity from Common Data Service(current environment) to Common Data Service and the flow worked with correct question mapping.

  • RE: Creating record in CDS using Power Automate flow is getting failed due to Resource not found for the segment

    I don't believe the logical name of the linking entity will be questions, as it is a part of the customer voice solution, it should have some sort of prefix.

    You can check then logical name in the entity under customizations of the CDS instance.

    historically, it would be msfp_questions(<id>) but I can't say if this is still the name of the field

  • RE: Creating record in CDS using Power Automate flow is getting failed due to Resource not found for the segment

    @Syndicate_Admin 

     

    - I double checked in the entity the question id is passing the correct value

    - Followed the instructions in the link and passed the value under question() & questions() but still getting the same error

  • Suggested answer
    RE: Creating record in CDS using Power Automate flow is getting failed due to Resource not found for the segment

    Hi!

    Maybe there is an incorrect mapping happening here.

    There are a couple things you can check:

    - The Id that you are passing in the Question field, is it the Id of your Question? - double check for sanity reasons

    - If this field acts like a lookup in CDS, sometimes passing just the Id isn't enough. You might need to do something like question(<questionid>). reference link https://community.dynamics.com/365/b/linn-s-power-platform-notebook/posts/power-automate-how-to-set-lookup-field-value-in-common-data-service-current-environment-flow-connector

    -- the best way to test this is to check the name logical name of the Question entity in CDS. Flow uses the same syntax as CDS internal calls to cross map records

    Let me know if there progress in your investigation. 

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans