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)

Integration Manager Payroll Transaction Before Integration Script

(0) ShareShare
ReportReport
Posted on by

I would like to create a Before Integration Script that will change the State Code if the Pay Code is a specific code.

For example, if Pay Code = 1102, set State Code to NM

Does someone have an example or has done this before?

 

Thanks.

*This post is locked for comments

  • Community Member Profile Picture
    on at

    Which integration tool you are using?

    Please drop me an email with details at tejas.patel@flovianit.com, so i can provide you best solution.

  • Jeff Rowles Profile Picture
    500 on at

    Hi Tom,

    I have done a similar translation but not as a "before script"....I just changed the Rule on the state code field in Entries mapping to be "Use Script" then the script would need to be something like this:

    If SourceFields("PR-Detail.PayCode")=1102 then CurrentField="NM"

    ElseIf SourceFields("PR-Detail.PayCode")=1103 then CurrentField="TX"

    Else CurrentField="PR-Detail.StateCode"

    End if

    Note/key:

    • replace PR-Detail to be whatever the name of your detail source is.
    • replace PayCode to be the column name for the Pay Code field from your source.
    • replace StateCode to be the column name for the State Code field from your source.

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