AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Generic Inquiry - S...
 
Notifications
Clear all

Questions Generic Inquiry - Sorting if files are attached

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 5 years ago
8 Posts
4 Users
0 Reactions
5,019 Views
RSS
mhoss
Posts: 34
 mhoss
Topic starter
November 8, 2018 3:55 pm
(@mhoss)
Trusted Member
Joined: 5 years ago

Hi All,

I'm trying to pull the attachment name into the PO GI (PO3010PL).
I found attachments in this table - PX.SM.UploadFileWithIDSelector - which has a convenient NoteID field.
However, this NoteID field is not the same as the NoteID used in PX.Objects.PO.POOrder.

Any ideas on how to join?

Thanks,

Matt


7 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
November 8, 2018 5:37 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

If you're looking to join to PX.SM.UploadFileWithIDSelector, I think you should be using FileID and not NoteID. NoteID should be for attaching Notes to File Attachments (hence the Note Icon when you access the File Maintenance screen).

Also, as multiple files can be attached to source documents, there must be another table linking the source documents to the records in PX.SM.UploadFileWithIDSelector


Reply
mhoss
Posts: 34
 mhoss
Topic starter
November 9, 2018 10:24 am
(@mhoss)
Trusted Member
Joined: 5 years ago

Hi Royce,

Thanks for the follow up. The only field that looks like a mapping key in PX.SM.UploadFileWithIDSelector is UploadFileWithIDSelector_NoteID. I don't see anything called FileID and in PX.Objects.PO.POOrder, there is only noteID for mapping.

We're in 17R2 if that matters. 

The only other way I can see the system linking these if not through the UploadFileWithIDSelector_NoteID field, is the file field which looks like this -
"Purchase Orders (RO S1810024)\Ebay Invoice.pdf"

Are there any good ways to tie these in to a GI for purchase orders?

Thanks!

-Matt


Reply
Tim Rodman
Posts: 3195
 Tim Rodman
Admin
November 11, 2018 11:29 am
(@timrodman)
Famed Member
Joined: 10 years ago

Try joining from PX.Objects.PO.POOrder to PX.Data.NoteDoc on POOrder.NoteID=NoteDoc.NoteID.

Then join from PX.Data.NoteDoc to PX.SM.UploadFile on NoteDoc.FileID=UploadFile.FileID.

The file name should be in UploadFile.Name. You can use a formula if you only want the stuff after the \


Reply
mhoss
Posts: 34
 mhoss
Topic starter
November 13, 2018 3:06 pm
(@mhoss)
Trusted Member
Joined: 5 years ago

That did it! Thanks Tim!!

Any sage words on how I could have figured that out?


Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3195
November 20, 2018 9:12 pm
Reply tomhossmhoss

I only knew about it because I spent a couple of hours fumbling around a couple of years ago. I knew there had to be a connection, but it took me a while to find it.


Reply
b-co
Posts: 12
 b-co
December 9, 2020 1:30 am
(@b-co)
Eminent Member
Joined: 6 years ago

@timrodman

Hello Tim

Could you please advise what the formula would be to use to achieve this: "You can use a formula if you only want the stuff after the \"?

 

Thanks. 


Reply
Tim Rodman
Posts: 3195
 Tim Rodman
Admin
March 15, 2021 3:14 am
(@timrodman)
Famed Member
Joined: 10 years ago

I was thinking something like this:

=Substring([UploadFile.Name],InStr([UploadFile.Name],'\\')+1,100)

Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 30 Online
  • 2,411 Members
Our newest member: thollings
Latest Post: Generic inquiry with information from Audit history(CT301000)
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • Terry Payne
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×