Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Updating bpf stage id v9

Posted on by Microsoft Employee

Hello community,

i'am trying to update the stage of a bpf but getting the error:

Active Stage ID ‘985ad5d7-fda7-4adb-a2c6-d328b9989367’ does not match last Stage ID in Traversed Path ‘38a8cae5-cf4f-414d-b135-a32d0cecbc12’.

Code:

FetchExpression BPFex = new FetchExpression(baseQuery);
EntityCollection e = service.RetrieveMultiple(BPFex);

if(e.Entities.Count>0)
{

foreach (var sa in e.Entities)
{

EntityReference d= sa.GetAttributeValue<EntityReference>("activestageid");
d.Id = myid;
service.Update(sa);


}

thank you

*This post is locked for comments

  • Suggested answer
    Ivan Ficko Profile Picture
    Ivan Ficko 1,380 on at
    RE: Updating bpf stage id v9

    You need to include Traversed Path in your update too.

    Traversed Path value should include all Stage GUIDs that need to be passed to the final stage including the final one and all that concatenated with ',' sign.

    For example:

    Stage1 -> Stage2 -> Stage3

    If you want to go from Stage1 to Stage3, Traversed Path must be equal to:

    "Stage1GUID,Stage2GUID,Stage3GUID"

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