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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Report Writer - User defined Function

(0) ShareShare
ReportReport
Posted on by 4,130

I am trying to change the Company address within Invoice Header based on the Customer Number

I have to use a VBA code with the Report writer to parse the customer number and then retrieve the company address from the database.  this need to be done with all types of invoices (Blank - short - long - Other)

Is there any way to acheive this without using VBA . someone is telling me that you can just do this by useing a user defined Function and calculated fields.

is that true? and how ?

 

Thanks,

 

 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Yes you might be able to do this using conditional calculated field, create new calculated field and select "Conditional", fill your condition in its location and fill the true and false fields with company address.

  • Alaa Ramadan Profile Picture
    4,130 on at

    I guess you mean hardcoding the address values based on the condition. but the requirments is to pull out the data dynamically from the database.

    Thanks,

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

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans