Skip to main content

Notifications

Announcements

No record found.

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
    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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans