Automatic Notification for New Record Creation & URL Create

JaanuJaanu Member Posts: 44
edited 2014-12-16 in NAV Three Tier
Hi ALL,

I have assigned to a task of Automatic Notification for New Record Creation & URL must be created. If click on link under page in My notification, must go to relevant document. I have achieved with Automatic Notification. but not able to create url with proper bookmark to link the particular record in relevant page. Please suggest me to create correct url with bookmark to open record in relevant page.

I tried out with following ways:


IF "No." <> '' THEN

Vend.GET("No.");

LURL := GETURL(CLIENTTYPE::Windows,COMPANYNAME, OBJECTTYPE::Page,26,Vend);

MESSAGE('%1',LURL);


&


RecRef.GETTABLE(Rec);

CLEAR(RecRef);

RecRef.OPEN(DATABASE::Vendor); //Used a RecordRef variable

RecRef.SETPOSITION(GETPOSITION);

LURL :='dynamicsnav://localhost:7046/dynamicsnav71/Jeyyam%20Products%20Private Ltd./runpage?page=26&bookmark='+FORMAT(RecRef.RECORDID,0,10)+'&mode=edit'; //10 = base64 encoding

NotifitnMgt.CreateNotification(RecRef,'',STRSUBSTNO(Text000,"No.",USERID),'',LURL);




Thanks in Advance,
Jaanu

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    I've used the following code to generate the url. It works fine.
    URL := 'dynamicsnav://servername:' + 
           Port + '/' +
           ServiceName + '/' +
           CompanyName + '/' +
           'runpage?page=' + PageID +
           '&personalization=' + PageID +
           '&bookmark=' + Bookmark +
           '&mode=Edit';
    

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • JaanuJaanu Member Posts: 44
    Hi tinoruijs,

    What has to be placed for 'Bookmark' in that url? That is main thing for specific record.
  • tinoruijstinoruijs Member Posts: 1,226
    Jaanu wrote:
    Hi tinoruijs,

    What has to be placed for 'Bookmark' in that url? That is main thing for specific record.

    Bookmark := FORMAT(RecordRef.RECORDID, 0, 10);
    :-k But that's the same that you already got. Strange.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
Sign In or Register to comment.