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?
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/
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?
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/
Hi Abhijit,
I just remembered a discussion about custom field and default. I then recognize it was you who asked:
This might be another reason that you don't see individual values where the values are equal to default.