Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

WorkflowTools - Rollup fuctions - fetch XML retrive PARENT_GUID

Posted on by 600

Hi

We are trying to create a Rollup Function form workflowtools as described in this post: github.com/.../Rollup%20Functions.md

The result will be a function that rolls up a value fields on opportunity child records and posts it on the opportunity parent record. 

We use the following query: 

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="ncg_productline">
<attribute name="ncg_value" />
<attribute name="ncg_productlineid" />
<order descending="false" attribute="ncg_value" />
<filter type="and">
<condition attribute="ncg_opportunityid" operator="eq" uitype="opportunity" value="{PARENT_GUID}" />
</filter>
</entity>
</fetch>

The issue seems to be with the PARENT_GUID not retriving the parent record. If we put in a static guid then everything works fine. 

Does anyone have an idea to how we can retrive a dynamics parent guid in the query?

Thanks for help

*This post is locked for comments

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans