Skip to main content

Notifications

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

Relationship between PurchaseId and CorrelationId?

(1) ShareShare
ReportReport
Posted on by 10

Is there a relationship between PurchaseId and CorrelationId?  ie.  How do you identify the registrations paid by a payment?

Use Case: Create an Event Registration and Integrate the payment with the University payment gateway

  1. We can create Event Registrations
  2. We can pay for the registration

 Problem:

  1. We are unable to match the payment with the registration

 

Information:

Image 1: “Eric Test Event”  event registration page

 Image-1-_2D00_-DynamicsMarketingEventRegistration.png

Image 2: Registration for 3 individuals who were paid. *** Note that the Correlation ID is the same because the registrations were done with one payment.

Image-2-_2D00_-DynamicsMarketingEventRegistrationTableDetailB.png

   

  1. We have setup an Angular project via Visual Studio Code and are using the api to create the registration. – THIS GENERATES the “PurchaseId”
  2. We are sending the “PurchaseId” to the payment gateway. The payment gateway returns the “PurchaseId” when the payment successfully completes.
  3. Using the “PurchaseId” on successful payments we call the “/api/data/v9.0/msevtmgt_FinalizeExternalRegistrationRequest” found in the reference below
    1. https://docs.microsoft.com/en-us/dynamics365/marketing/developer/finalizing-registrations-for-paid-events
  4. The registration(s) appear following this call referenced in step 3.
  5. We are unable to relate the “PurchaseId” to the correlating events. My understanding from Microsoft is that the PurchaseId is temporary.
  • Suggested answer
    Diana Roy Profile Picture
    Diana Roy on at
    RE: Relationship between PurchaseId and CorrelationId?

    Hi, this is at the moment not possible in Dynamics Marketing, but i will track these feedbacks for improvements for the future, Diana

  • Bryan Kraus Profile Picture
    Bryan Kraus 10 on at
    RE: Relationship between PurchaseId and CorrelationId?

    If all registrations were "finalized" prior to sending the registrant to the payment gateway, would it be possible to get a relatable piece of information (correlation id) from the registration and then send them to the payment gateway to include the correlation id?  If the registration remains unpaid for X timeframe then cancel the registration?

  • Preston Cuer Profile Picture
    Preston Cuer 5 on at
    RE: Relationship between PurchaseId and CorrelationId?

    I am having the same challenge. It doesn't even show what each attendee purchased for passes- it just has the transaction total and a list of attendees. It would be best if the response from the finalization of the registration (msevtmgt_FinalizeExternalRegistrationRequest) returned a list of the registration id's that were created, instead of only containing the word "success".

    The best workarounds I can come up with are all bad:

    1. Don't reconcile payments to registrations.

    2. Manual Reconciliation- pass in the attendee info to the payment gateway (we're using PayPal) so that someone can reconcile attendees to payments manually.

    3. Email Reconciliation- require emails to be unique, either on the front end or when pulling the Purchase information. Then after registration is complete, pull the registrations by email and match them to the purchase (because of the lack of pass information this would have to be at a summary level based on Correlation ID)

    4. Time based reconciliation- pull the most recent registration that matches based on email address and connect them. Hope that two people don't register with the same email at exactly the same time.

    Hopefully we can get a real answer.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans