SBX - Search With Button

SBX - Forum Post Title

Workflow Tools - error when deleting record

Microsoft Dynamics CRM Forum

Allison Walters asked a question on 29 Nov 2018 8:47 PM
My Badges

Question Status

Verified

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?

Reply
Verified Answer

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).

Reply
Allison Walters responded on 29 Nov 2018 9:10 PM
My Badges

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.

Reply
Verified Answer

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.

Reply
Allison Walters responded on 29 Nov 2018 9:25 PM
My Badges

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!

Reply
Allison Walters responded on 29 Nov 2018 9:44 PM
My Badges

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.

Reply
Verified Answer

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).

Reply
Verified Answer

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.

Reply

SBX - Two Col Forum

SBX - Migrated JS