Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

details = all parameter is not working for API get_equipment

4 REPLIES 4
Reply
Message 1 of 5
abhijit.damle
377 Views, 4 Replies

details = all parameter is not working for API get_equipment

details = all parameter is not working for API get_equipment. I am passing 3 parameters to API get_equipment, first one being ticket with value of token I receive from call to login API, second one being project id and third one being details with value all. I am getting error "called timed out". If I call get_equipment with just 2 parameters (ticket and project id) the call succeeds but doesn't return values to custom fields. This link mentions that using third parameter details with value equal to all retrieves values to custom field values. How to retrieve values to custom field values without using parameter detail with value equal to all?

4 REPLIES 4
Message 2 of 5

Hi Abhijit, 

 

 

I just tried it myself using the sample data.  It works for me.  So must be something specific to what you are doing. 

 

If it's returning the time out, maybe you have a lot of data.  You may try using a small data to test, or use limit/offset parameters to limit the number of records that you retrieve at one call.  

 

If the smaller data does not work, either, try using a tool like postman so that it eliminates possible cause in your code.  e.g.,

 

    https://fieldofviewblog.wordpress.com/2016/09/13/troubleshooting-tips-making-rest-calls/

 


Mikako Harada
Developer Technical Services
Message 3 of 5

I just have 2403 records with 31 custom fields per record. I tried using details = some or details = more then the api call succeeds but custom field values are not returned. How do I limit number of records that are downloaded in single api call of get_equipment?

Message 4 of 5

As I wrote earlier, you can use limit/offset parameters. e.g., 10/0  Please refer to the documentation: 

 

https://bim360field.autodesk.com/apidoc/index.html#mobile_api_method_30

 

That said, if you use more, it should be returning custom field as well.  I experimented while ago and compared the result.  details all should be details none + details more.  

 

https://fieldofviewblog.wordpress.com/2015/08/25/apiget_equipment-details-parameter-explained/


Mikako Harada
Developer Technical Services
Message 5 of 5

Hi Abhijit, 

 

I just remembered a discussion about custom field and default.  I then recognize it was you who asked:  

 

https://forums.autodesk.com/t5/bim-360-api-forum/api-get-equipment-returns-empty-value-for-custom-fi...

 

This might be another reason that you don't see individual values where the values are equal to default. 


Mikako Harada
Developer Technical Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report