Skip to main content
Solved

Custom column attachments exist Yes/No


SureshBandara
Do Gooder (Partner)
Forum|alt.badge.img+2

Hi,
I need to add a new custom column to indicate the availability of attachments for each line.
Is it possible to get it through an API call / any suggestions please?
APP 10 Aurena

Same as column "MRB exists Yes/No" need a column "Attachments Exist Yes/No"

 

Best answer by Sahan Udana

Hi Suresh,

 

Maybe you can try the call Doc_Reference_Object_API.Get_Obj_Conn_Client_Hit_Count. As Mathias mentioned you can try this method in a custom field to or create a function to select count and return true or false.

Be sure to provide the correct keyref and luname.

Hope this helps for a starting point.

 

Regards,

Sahan

View original
Did this topic help you find an answer to your question?

5 replies

Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2828 replies
  • April 26, 2022

Hi,

There is an API (REST) call that Aurena does to count attachments, but I'm not sure if you can use it in your context. To see it, open any page that has attachments enabled and activate Chrome dev tools / Network tab. You will see the call there once you click to open the Documents section.


SureshBandara
Do Gooder (Partner)
Forum|alt.badge.img+2
  • Author
  • Do Gooder (Partner)
  • 3 replies
  • April 26, 2022

Hi Mathias,

Thank you very much for the quick answer.

Are there any existing database functions that can be used for this? (Get method)


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2828 replies
  • April 26, 2022

Not that I know of but I only made a few quick searches. If we can still define a custom field using a SELECT statement, then you should be able to pull it off. At least to count the number of documents that are directly connected to the document. Also counting documents from Object Connection Transformation rules is hard, or impossible, from a SELECT statement on a custom field.


Forum|alt.badge.img+14
  • Superhero (Employee)
  • 169 replies
  • Answer
  • April 27, 2022

Hi Suresh,

 

Maybe you can try the call Doc_Reference_Object_API.Get_Obj_Conn_Client_Hit_Count. As Mathias mentioned you can try this method in a custom field to or create a function to select count and return true or false.

Be sure to provide the correct keyref and luname.

Hope this helps for a starting point.

 

Regards,

Sahan


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2828 replies
  • April 27, 2022
Sahan Udana wrote:

Hi Suresh,

 

Maybe you can try the call Doc_Reference_Object_API.Get_Obj_Conn_Client_Hit_Count. As Mathias mentioned you can try this method in a custom field to or create a function to select count and return true or false.

Be sure to provide the correct keyref and luname.

Hope this helps for a starting point.

 

Regards,

Sahan

Haha! How did I miss that? 😃

Thanks Sahan!
 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings