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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Using VBScript to concatenate text and field value

(0) ShareShare
ReportReport
Posted on by

Hi all and thank you for your support.

I have a source field entitled "Cash", and whenever "Cash">0, I need to set the Payables Cash Entry window's Document No. field to "WIRE" concatenated with Payables Cash Entry window's Payment Number field. Below is my current script (after dozens of various similar attempts) that is not working when I input this script into the Document No. Rule in IM.

If SourceFields("Cash")>0 Then

DestinationFields("Document No.") = "Payment Number"
Else
DestinationFields("Document No.").SetToDefault
End If

Note that the specific table I am working with is PM10000 and the field names are CDOCNMBR (Document No.) and CAMPMTNM (Payment Number).

Thank you very much for your assistance!

Patrick

*This post is locked for comments

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans