Hi Folks,
I have a requirement of attaching a file to a Journal Line record from the share point location specified in Document Management Parameters form.
When share point URL is configured in D365 Environment, whatever files we attach to a record gets automatically uploaded in location path of share point based on Document Type Setup in D365 FO.
The requirement is I need to attach a file which is already present in Sharepoint location to a Journal Line Record as an attachment through code in D365 FO.

Is there a way to link the files from share point to D365 without manually attaching and uploading in D365 FO .
Thanks in Advance.