Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

IM10 CancelDocument Syntax

Posted on by 35

Hi All

I have an integration that needs to skip the document if a source fields contains a certain value. It works, but always writes an error instead of successful exit status when I use CancelDocument


The Syntax is supposed to be:

 CancelDocument [message, source, status_code, field_name, field_value]

 I tried

CancelDocument "PO already exists" & SourceFields("PORef"), , 0

I also tried filling in all 5 parameters, but it still writes an error instead of just a message.

Am I doing something wrong, or will cancel document ALWAYS generate an error? 

TIA

 

Mark

*This post is locked for comments

  • Sunbeam De Jesus Profile Picture
    Sunbeam De Jesus 3,930 on at
    Re: IM10 CancelDocument Syntax

    if you wanted IM to skip certain document if source fields is a certain value, try use filter function from the source definition. IM will not read this record anymore.

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans