This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- Code Insight
- :
- Code Insight Forum
- :
- Re: Is there a way to determine the request an attachment is associated with?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 04, 2019
11:03 AM
Is there a way to determine the request an attachment is associated with?
FNCI 6.x -- attachments to requests are kept under {install-dir}/config/core/attachments/{mmddyyyy}_ {nnnnnnnnn}_{username}_{attachment filename}
I am not sure what the {nnnnnnnnn} number is -- I assume it is a timestamp?
Is there a way to determine from this filename what request the file is attached to?
It would very useful if an attachment name could be mapped back to the request to which it is attached.
thanks,
Michelle
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 13, 2019
02:52 AM
Michelle,
You can get the request ID associated with a given attachment from the database using the query below:
SELECT ENTITY_ID_ FROM PAS_ATTACHMENT WHERE ENTITY_TYPE_ = 'R' AND NAME_ = 'ATTACHMENT_FILE_NAME';
Hope that helps,
-Alex