item.create have created via Id in POST
I'm trying to detect when someone Imports a list of items verses when they manually add a item into an App. Now I can do this by calling an API function to get the Item based off the ITEM_ID that is passed in. If I check out the created_via property it will tell me if it's an EXCEL IMPORT or PODIO (for manual). This is great accept that I have to waste an API call just to determine how the Item was entered. If someone imports 10,000 items it will eat up my entire rate limit for the hour because I'll be checking to see if each item was an EXCEL IMPORT.
Now I played with the idea that on the first detection of an EXCEL IMPORT Item I disable all my API calls. This works great! Only problem is that how do I then detect when a manual entry (PODIO) is created? I have no way of checking the "CREATED_VIA" property if I have my API calls turned off and can't get the Item.
I was thinking that if Podio could pass the created_via_Id (1 for Podio, 57 for Excel Import) with the item.create hook that would completely solve my problem. Is this possible??
Thanks so much!
Please sign in to leave a comment.
Comments
0 comments