Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Workflow Tools - error when deleting record

Posted on by 3,079

I'm trying to use the Delete Record function in the Workflow Tools add-on to delete a record.  I'm trying to just manually put a single record GUID in at the moment, just to make sure it's a correct GUID, but still no luck.

Properties are defined as:

Delete using Record URL: False

Entity Type Name: <the schema name of my entity, in lower case>

Entity GUID: <the GUID of the record - I've tried in upper case, lower case, and with and without brackets>

If I run the workflow with just this one step, I get the error "Unexpected exception from plug-in (Execute): msdyncrmWorkflowTools.Class.DeleteRecord: System.NullReferenceException: Object reference not set to an instance of an object." 

The record 100% exists.  Anyone know where else I could look for what's happening here?

*This post is locked for comments

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Workflow Tools - error when deleting record

    For the record, I did throw your solution in quickly, and it works fine.  Which is awesome, but we've already got so many packages in here that the last thing I wanted was another one to keep an eye out for new versions for, etc...  So we shall see.

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Workflow Tools - error when deleting record

    Hmmm...hoped I was just using it wrong, and someone else who was using it might have a hint (since I'm trying to get this done tonight).  I'll give that a try, though, and maybe just scrap this idea for tonight's project.  :-(  Thanks!

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow Tools - error when deleting record

    I haven't checked documentation. I checked sourcecode. You can try to reach author of Workflow Tools and open on issue on his GitHub repository.

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Workflow Tools - error when deleting record

    According to the documentation, the Url should only be needed if the first parameter is true, not false.  I did try putting the Url in (even though that's not how I'm going to use it), and still got the error.  :-(

    We're already using this toolkit in a tonne of places, so I'd like to find a way to work within it rather than loading another one.  Will keep yours in mind, though, if I can't find a way to make this work.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Workflow Tools - error when deleting record

    Allison,

    I checked code and it seems that code expects for Url passed to DeleteRecordURL parameter. You can use it or as a suggestion you can try my toolkit (I just released new version).

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