Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Record ID field in the Record Link table

Posted on by Microsoft Employee

How can I convert the Record ID field in the Record Link table from VARBINARY to VARCHAR and back to VARBINARY.  The binary field must be encrypted or setup a special way.  We use Jet Reports on this table and it displays in Text.  How do they accomplish this?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Record ID field in the Record Link table

    SELECT CONVERT(VARCHAR(MAX), <varbinary_value>, 2)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Record ID field in the Record Link table

    I am writing an interface from Nav 2013 to ADP Open Invoice web application.  One part of the interface is to send a pdf of the scanned field ticket signed by the customer.  This document is linked in the nav system so I know the “Record ID” field of the Record Link” table in TEXT.  Using an SQL script, I try to Select the record using the where statement on the “Record ID” field and it won’t select the record because it is in some sort of encrypted VARBINARY field in the table.  I have tried many variations of the CONVERT and CAST function but nothing seems to work. I notice in JetReports it displays the “Record ID” field in TEXT and I was wondering if you can give me some insight on how I can accomplish the same thing using an SQL Script

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Record ID field in the Record Link table

    I'm confused about what you need. Is this in a jet report? What is the dependent function or what error are you getting?

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Record ID field in the Record Link table

    Hi,

    You may use http://basitaalishan.com/tag/converting-varbinary-to-string/

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