Maximo Open Forum

 View Only

 Query regardging Maximo Mobile API

  • Mobility
Invading Moss's profile image
Invading Moss posted 09-11-2024 01:18

Hi,

I noticed the below API call being made by maximo mobile

We seem to be using fetchmodedetlta in the api call but not sure it will take effect as I believe it requires lastfetchts param as well? Correct me if I am wrong here

Also can someone clarify the docdownloadid and optimize params?

Steven Shull's profile image
Steven Shull

We have certain query parameters that essentially always get appended in the fetch and this is one of them. For certain REST API features like the getlist, a delta sync is not possible. The REST API won't return the maxrowstamp in the header nor would it utilize the lastfetchts if it's provided. 

The only use case for getlist~status style attributes today are attributes with the lookup-map defined for filter purposes. I would actually prefer we eliminate these entirely in Maximo Mobile because they're capped to 1000 records and will show results from any org/site you have access to which may not align with the data that you're seeing. And we have these lookup-map defined on various attributes that are not even exposed as a filter so it's a waste of time to download the data. 

Invading Moss's profile image
Invading Moss

Thanks @Steven Shull

Makes sense. By any chance would you have an idea regarding docdownloadid and optimize params being sent in form data. I can't seem to find any documentation related to these 

Steven Shull's profile image
Steven Shull

docdownloadid is related to a new feature we built for downloading attachments as a zip. Multiple records can reference the same attachment and we want to download it only once. By having the docdownloadid=1 header, that adds in the docdownloadid in the doclinks child object for each record that has the attachment. This generates unique strings for this specific session for security purposes for our request to download the file.

After we have downloaded the record data (without the file contents), provided the maximo.mobile.attachments.autoDownload system property is enabled and the user has not disabled it in their application (in the Settings->Offline data), we then make a request to download these files. This is done using an API call like this:

/maximo/oslc/doczip?ids=bnB6&maxfs=5120000&mimetype=pdf,zip,txt,doc,docx,dwg,gif,csv,xls,xlsx,ppt,xml,xsl,bmp,html,png,pptx,cfr,jpeg,mp4,mov,odt,ods,odp,jpg,jpeg,rtf,wmv,wm,wma

The ids= would be a comma separated list from the docdownloadid. 


I'll be honest, I don't know what optimize does though or if it's even used. 

Invading Moss's profile image
Invading Moss

Thanks @Steven Shull for the explanation. Much appreciated