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 NAV (Archived)

Direct hyper links to customer/contact cards

(0) ShareShare
ReportReport
Posted on by 165

Hi

I am using NAV 2009 R2 RTC client and need to be able to link directly to a specific customer/contact card from an external application. I know I can use the dynamicsnav:/// handler to open the correct page but not with a specific customer/contact unless I use a bookmark which I do not have.

I have used the web service (from c#) to retrieve the customer/contact I want to open and have the contact/customer number. But how can I convert this to a bookmark without having to create a codeunit. Ideally I could do with being able to call  FORMAT(RecRef.RECORDID,0,10) via the webservice.

Is this possible or if not do I have any alternatives?

Thanks

Ben

*This post is locked for comments

I have the same question (0)
  • geordie Profile Picture
    on at

    If you don't want to create a new codeunit what about inserting in your ws (I assume a page) a field

    evaluated in this way?

    "DynamicsNAV:////runpage?page=21&bookmark="+RECORDID.value

  • cowlinb6 Profile Picture
    165 on at

    Thanks Daniele, not quite sure what you mean by this. The webservice I am using is for the CustomerCard not my own webservice within NAV. How would you access the RECORDID.value property?

  • geordie Profile Picture
    on at

    So, if you exposed the customer card insert this code in OnAfterGetRecord:

    ReRef.SETPOSITION(GETPOSITION)

    And add a new field in page with, as source expression, the string in previous post.

  • cowlinb6 Profile Picture
    165 on at

    I've added this is the OnAfterGetRecord event (I assume you meant RecRef not ReRef) but when I try and save I receive this error. I did try ReRef but had the same error.

  • cowlinb6 Profile Picture
    165 on at

    Ill add the screen shot this time!

  • Verified answer
    geordie Profile Picture
    on at

    Yes, was a typo: you need to declare a RecordRef variable called RecRef before using it.

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 NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans