Post

33 followers Follow
48
Avatar

ID Field

Is there any way to add a field that automatically generates an ID number starting at 1 and incrementing each time. This would be useful in apps for tracking issues / bugs / defects etc.

Alan Gorman Completed

Please sign in to leave a comment.

65 comments

0
Avatar

No, I didn't. I'm writing my own script, using the Podio ID from the API. I only want a unique field as key field, so I can use Excel to do updates on many rows and import it again 

Stephan Vierkant 0 votes
Comment actions Permalink
0
Avatar

Hi Folks

 

I am trying to implement Norberts method...however i can't seem to find where to upload the api key?

In the help, you suggest:

  1. Upload generateid.php on the server that you specified in the 1st step

and the example you provide is:

  1. I uploaded file to 56.263.65.62/Generateid/generateid.php

This doesn't seem to work for my domain? (i'm using names not numbers? not sure if that matters?)

If you have any suggestions, i'd really appreciate it.

thnx for making this work...it really is something Podio should do out of the box...but if this works i'll be happy!

ciao

Nunzio Gambale 0 votes
Comment actions Permalink
0
Avatar

@Nunzio you don't need to upload a key, rather you need to obtain a key from Podio and enter it in the config.php file Norbert provided. You'll need to do a few things to setup the config.php file correctly:

APP_ID and APP_TOKEN are obtained from the application you want to use the script with, go to the application in Podio and click the wrench/settings button then Developer, the top two text boxes are what you need.

CLIENT_ID and CLIENT_SECRET are obtained from the Account Settings > API Keys section, generate a new API key and put the results in the config.php file.

Providing you have the rest of the config.php file setup correctly, the last part you need to carry out is to add the hook to the application. This is done in the same place as the APP_ID is obtained from, click the Add Hook button then enter the URL to the generateid.php script on your server and set the type to item.create

Hope that helps :)

Craig Hollis 0 votes
Comment actions Permalink
0
Avatar

Thnx Craig. I'm a php newb I'm afraid. Your post makes heaps of sense and I'll give it a crack tomorrow. Ciao

Nunzio Gambale 0 votes
Comment actions Permalink
0
Avatar

Thanks Norbert,

This is quite helpful and shows the power of API hooks. I can think of many more uses for this.

Sébastien Couture 0 votes
Comment actions Permalink
0
Avatar

i don't understand php. do i just upload these files and point the hook to them?

Daniel Hadinata 0 votes
Comment actions Permalink
0
Avatar

sweet! makes our lives a little bit easier....

now on to calendar i assume? 

: )

Mosey Levy 0 votes
Comment actions Permalink
0
Avatar

Actually it's nice to have a field now but how can you search for it? At least for my App I would need to search by ID.

Stephan Klaus 0 votes
Comment actions Permalink
0
Avatar

disappointing that you can't start it from a custom number.

Daniel Hadinata 0 votes
Comment actions Permalink
0
Avatar

great work folks. this will be incredibly useful to me and (i reckon) 70% of your user base! ciao

 

Nunzio Gambale 0 votes
Comment actions Permalink
0
Avatar

This is great, but is there any way to start from a custom number? I have an app with over 900 items in it already so starting from zero again isn't really possible.

many thanks, keep up the good work!

David Jones 0 votes
Comment actions Permalink