Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Email

Posted on by Microsoft Employee

I have a function which takes the user ID, strips it and adds an email to it.  This function is called (CreateEmailAddress) within CP Utilities code unit. 

53.PNG

I then have another function which creates an email response. I need to basically call the function above within this to state what strUsersName in the above function is. 

54.PNG

How can I write this, I know it should only be a line or two long..

I've never done this before so I'm struggling to explain what I mean in a good way.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Email

    Thank you for your reply, I've since sorted the problem :)

  • Verified answer
    RE: Email

    Hi,

    What are the Parameters that CreateEmailAddress function takes? Since it is returning back the email address,

    You can probably write,

    CPUtilities.CreateEmailAddress(strUserName);  "strUsersName" is a parameter, but it could be wrong.

    Im not sure what are the parameters does the CreateEmailAddress takes. Please give us more information.

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans