Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Trying to use Flow to create a Check-In Record. Getting error

Posted on by 195

I have a small app to scan the QR code and check in a registrant for an event. When I use Flow to create the Check-In record I get the following error which doesn't make any sense. 

"Resource not found for the segment"

I have tried all combinations of values in the fields. Here all my flow is doing is being triggered by a button and creating a check-in for a event using the Event Registration guid, contact guid, Event guid and check in time. I have also tried with just the required field Event Registration guid. 

pastedimage1580731483816v1.png

Anyone got any ideas what it could mean? I can create a check-in manually in D365 no problem. 

  • MattFJohnson Profile Picture
    MattFJohnson 195 on at
    RE: Trying to use Flow to create a Check-In Record. Getting error

    I have finally found out what was wrong.

    You know when they say, the answer is only simple WHEN you know it. 
    I am trying to create a record using the CDS (current environment) connector.  It turns using this connector you need to preface your guid with the schema name of the entity in its plural form. 
    In my case this was msevtmgt_eventregistrations(822b22d7-6d7a-4442-ae97-c68e347e8db6)
    If your schema name ends with an s you'll need to add es to the end of it instead. 
    See this article which basically explains it
    To be fair to Microsoft, they kind of hint that you need it by putting the name of the related entity in brackets in the flow step but in no way does this actually show you what you need to write. They really need to sort this out. if they need the schema name of the entity why can't they just get it themselves. You don't need to do this in other connectors when you refer to a related entity using just a guid.

    pastedimage1580985299287v1.png

    So I've sorted it now and it works. 

    I must apologise to https://community.dynamics.com/members/ankit-sabharwal  as I think he was trying to tell me this but I didn't understand what he was trying to say.

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Trying to use Flow to create a Check-In Record. Getting error

    Hi Matt,

    Once you've chosen Check-in type to Event check-in, then you just need to populate Registrant attending field with specific Event Registration entity record id.

    pastedimage1580982125304v1.png

    pastedimage1580982170228v2.png

    Result:

    pastedimage1580982210900v3.png

    Contact and Event fields will be populated automatically from the event registration record.

    So please check whether your Registrant attending field has been populated with Event Registration record guid correctly.

    Regards,

    Clofly

  • MattFJohnson Profile Picture
    MattFJohnson 195 on at
    RE: Trying to use Flow to create a Check-In Record. Getting error

    Hi Ankit,

    I'm not sure I follow your thinking here. Are you sure you've understood my problem?

    When using Flow, you get a CDS (current environment) connector. This gives you access to all the entities in CDS. In this case you can say you want to create a new record and point it to Check-ins. It then gives you some fields to fill in some of which are required. These are the same as on the form in the Marketing App. You must fill in the fields Check-in type and Registrant attending (Event Registration). All others are optional as you can see. Here in the screenshot I have pasted the actual guids of the records I want to link the Check-in to, this is to ensure nothing is going wrong when using dynamic values provided by Flow itself. 

    pastedimage1580914019105v1.png

    I think there is an issue with the Flow CDS connector creating records for the Check-in entity. 

  • Suggested answer
    RE: Trying to use Flow to create a Check-In Record. Getting error

    Hy Matt,

    Hope this post finds you well.

    You need to check the stack trace. It seems from the issue you are facing is, you need to check the API which you are using. It seems entity in the URL you are using , you are not providing the collection schema name of it.

    Please update the API URL and then check.

    If entity name ends with s, then in URL add es at the end of the entity and if it doesn't ends with s , then adds in the entity name in the URL.

    Thanks,

    Ankit Sabharwal

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

Featured topics

Product updates

Dynamics 365 release plans