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 :
Small and medium business | Business Central, N...
Answered

Attachment feature in vendor card.

(0) ShareShare
ReportReport
Posted on by 387

Dear Experts,

I want to use the attachment feature in vendor card. I have added this functionality form sales order . But i am unable to  select the attachment. 

I think there have a master table, where i need to add the vendor table for accepting the attachment from user end. Please help me resolve it.

I don't want to use link functionality.

Please help on these critical issue.

I will be thankful if someone can give resolution on these.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

    Please use this link, I hope it will help you, go to Posted Purchase Invoice there you will find a fact box which allow you to attach a file.

    www.crt-insights.com/.../

  • navision begginers Profile Picture
    387 on at

    I appreciate your response. Unfortunately, this didn't solve our problem.

    I have added it this feature in Vendor Card.

    But, attachment is not working. Please suggest the best.

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    PLease share error, why its not working?

  • navision begginers Profile Picture
    387 on at

    No error is coming, you can see the screenshot. Everything is working normally, but attachment is not showing there. Always showing blank. 

    5148.png

    8228.png

    Also I have write the code on page.

    OnAfterGetCurrRecord()
    CurrPage.IncomingDocAttachFactBox.PAGE.LoadDataFromRecord(Rec);

  • Verified answer
    Binesh Profile Picture
    7,885 on at

    You have to add the field "Incoming Document Entry No." in vendor table and need to write the code for populating the "Incoming Document Entry No." while importing the attachment.

    For testing purpose, after adding the field in the vendor table, just add any Entry No. from Incoming document, and then open the vendor card you will get your document.

  • navision begginers Profile Picture
    387 on at

    Thank you for your reply.

    i have added a new field in vendor table and write all functionality...but nothing happens. 

    6763.png

    4214.png

  • Verified answer
    Binesh Profile Picture
    7,885 on at

    Check the vendor table and make sure the field "Incoming Document Entry No." should be updated with "Incoming Document"."Entry No."

    If not updated then first debug the "Attach File" coed and write the logic to update the "Incoming Document Entry No." in the vendor table.

    Note: Your Challenging task is updating the "Incoming Document Entry No." in the vendor table while attaching file.

    For your testing purpose run the "Incoming Document" table and take any entry no. and this entry no. manually run the vendor table, an then update the "Incoming Document Entry No."  for any vendor, Now open the vendor card you will get the document as shown below.

    pastedimage1590842176224v1.png

  • navision begginers Profile Picture
    387 on at

    through debug I have found the some problem in table no 133. I have make a new function for Vendor table. But I am unable to save it. becoz document type filter is not available in Vendor table. Please see the screenshot.

    6523.png

  • navision begginers Profile Picture
    387 on at

    I have write the code like ...

    NewAttachmentFromVendorDocument(Vendor : Record Vendor)
    //NewAttachmentFromDocument(
    // Vendor."Incoming Document Entry No.",
    // DATABASE::Vendor,'',Vendor."No.");

    IF Vendor."No."='' THEN
    EXIT;
    SETRANGE("Incoming Document Entry No.",Vendor."Incoming Document Entry No.");

    it is running,,,but in vendor card...incoming document entry no. still not generating.

  • navision begginers Profile Picture
    387 on at

    Now it has been resolved. Unfortunately I have left to write the code on codeunit no. 134. .

    It is working fine.

    Thank you very much Binesh Sir.

    2541.png

    4442.png

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans