web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

IM10 CancelDocument Syntax

(0) ShareShare
ReportReport
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
    on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans