API Feature Request Contacts

Hi Aaron

In the FreeAgent UI it’s certainly possible to hide a contact
(http://www.freeagent.com/support/kb/contacts/contacts-screen-overview).
This should be possible via the API, but it looks like the documentation
might be missing this.

When creating a contact, set the following field:

“active” : false

This contact should then be marked as hidden and not appear in the Contact
drop downs in the UI, or on the main Contact Index page unless you
specifically filter for Hidden Contacts.

OllyOn Tuesday, July 17, 2012 10:52:39 PM UTC+1, Aaron Wardle wrote:

Hi,

I am currently working on an integration and would really like the option
to be able to hide contacts when I import them, I have checked the API Docs
and it seems you cannot currently set this.

The main purpose for this flag for me would be that we are importing many
contacts into freeagent from another system so we can mirror the invoices
for accounting purposes but apart from that we do not actually wish to see
these contacts within freeagent when using it day to day for other
purposes.

Thanks Aaron

Hi Olly,

Just one thing if your watching this post I ran the above suggestion to add
the hidden contacts but when running my script to show all contacts using
no view filters as the default should be all.

The API returned zero results, even though I had 5 hidden contacts, it
seems that the docs for this part need updating as well as I had to issue
the getContacts with the view
command https://api.sandbox.freeagent.com/v2/contacts?view=hidden

Thanks again Aaron

Awesome, I just updated my script and params and it worked a treat.

Thanks AaronOn Tuesday, July 17, 2012 10:52:39 PM UTC+1, Aaron Wardle wrote:

Hi,

I am currently working on an integration and would really like the option
to be able to hide contacts when I import them, I have checked the API Docs
and it seems you cannot currently set this.

The main purpose for this flag for me would be that we are importing many
contacts into freeagent from another system so we can mirror the invoices
for accounting purposes but apart from that we do not actually wish to see
these contacts within freeagent when using it day to day for other
purposes.

Thanks Aaron

Hi Aaron,

There is another mistake in the docs. The default for contacts is actually
“active” which is the same as the default in the main app. To show “all”
contacts use:

https://api.sandbox.freeagent.com/v2/contacts?view=all

Kind regards,

GraemeOn 17 July 2012 23:55, Aaron Wardle aaron@pccomfort.co.uk wrote:

Hi Olly,

Just one thing if your watching this post I ran the above suggestion to
add the hidden contacts but when running my script to show all contacts
using no view filters as the default should be all.

The API returned zero results, even though I had 5 hidden contacts, it
seems that the docs for this part need updating as well as I had to issue
the getContacts with the view command
https://api.sandbox.freeagent.com/v2/contacts?view=hidden

Thanks again Aaron


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/IHyCJSnG6BgJ.

To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.

Graeme Boyd
Senior Software Engineer

Web. freeagent.com http://www.freeagent.com/ Blog. freeagent.com/blog
Twitter. @freeagent https://twitter.com/#!/freeagent Facebook.
facebook.com/freeagentapp

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774