Page 1 of 1

update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 3:04 am
by ed123
Hi,

I can't find any from this link "http://vicidial.org/docs/NON-AGENT_API.txt" the way in how to update a disposition or status of a lead.

Please advise.


VERSION: 2.14-617a
BUILD: 170529-2320
© 2017 ViciDial Group

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 4:57 am
by mflorell
The "update_lead" function, use the "status" field.

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 6:11 am
by ed123
http://server/vicidial/non_agent_api.ph ... ode=fd1245

this one did not update. the status still NEW and vendor lead are the same.

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 6:13 am
by ed123
by the way, here the result.

SUCCESS: update_lead LEAD HAS BEEN UPDATED - crm|1227823|0

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 6:27 am
by ed123
Hi,

It's working now. Thanks for your help.

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 6:38 am
by ed123
Now, my concern is if it found the lead and then it has 5 same lead(for some reason), it only update 1 out of 5.

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 7:55 am
by blackbird2306
There is another hidden option to define how many records should be changed. Usually it is only 1 record with the the newest entry date. But you can alter this behavior with get parameter. Try to append to your url e.g. &records=5

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 5:23 pm
by mflorell
It's not a hidden option, it's right there in the doc:

records - number of records to update if more than 1 found (defaults to '1'[most recently loaded lead])

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 6:01 pm
by blackbird2306
Yes sorry it's NOT hidden :)

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 10:12 pm
by williamconley
blackbird2306 wrote:Yes sorry it's NOT hidden :)

How about "often overlooked" ...? 8-)

Re: update lead status via NON-AGENT_API.txt

PostPosted: Thu Mar 15, 2018 10:24 pm
by ed123
Guys,

It work! Thank you so much for your always support.