How to add Organisation Tag Field in Podio? - podio

Hi I am trying to add Organisation tag with following code:
PodioAPI.Models.Item addItem = new PodioAPI.Models.Item();
var organisationTag = addItem.Field<XXXXXXXX>("organisation");
I am not sure, which type of field I have to put in place of XXXX. For email it is EmailItemField and for Phone it is PhoneItemField.
Here I am not sure about the organisation field.

That should be TagItemField but I'm not sure if it's supported in C# client.

Related

How to add a contact to a list in ActiveCampaign API v3

According to v3 docs I should be able to add a contact to a list using the Contact API but I am at a loss on how to do so as I see nothing list related under Contacts.
How do I add a contact to a list (not through automations) using version 3 of the API? Or are the docs in error?
The v3 docs have been updated (Lists documentation) and they no longer read that you can add a contact to a list through the API. ActiveCampaign Lists documentation screenshot
EDIT: you can add a contact to a list using the v1 contact_sync (contact_sync documentation)
SECOND EDIT: you can now add a contact to a list and/or change their subscription status to a given list through the v3 API!
(update list status for a contact documentation)
The above is no longer true. You can add a contact using the Create Contact endpoint.
It's basically a POST request that uses the following parameters:
E-Mail (Required)
First Name (Optional)
Last Name (Optional)
Phone (Optional)
The API v3 changed a lot though and now after you create a contact to do the following this you have to consult other endpoints. For example:
To add a contact to a list you need a POST request to the Contact Lists endpoint where you need to provide three parameters (listid, contactid, status).
If you need to assign a tag to a contact, in order to be able to create the relationship you first need to create the tag using the Create a new tag endpoint. And the use the resulting tag id with the Create Contact Tag endpoint where you combine said tag id with the contact id.
Now in order to remove that same tag the guys from Active Campaign made us work more and in order to remove a tag from a contact you don't use the contact's id and the tag's id, but rather you have to use the contact's id and the relationship id between the tag and the specific contact, that's quite a lot of steps, but I guess they wanted to make it very robuts in terms of structure.
There are many new endpoints which were actually available from around the date when you asked your question. You should check out the new API reference. It has some flaws and is not 100% complete yet, but it would be useful.
Hope this helps since it gave me some head heck... Using activecampaign php sdk when adding a contact with the sync command you can also add it to a list:
$list_id = 'thelistid';
$contact = array(
"email" => 'contactemail#doamin.com',
"p[{$list_id}]" => $list_id,
"status[{$list_id}]" => 1, // "Active" status
);
$contact_sync = $ac->api("contact/sync", $contact);
They wrote it also as examples on the repository but for some reason I didn't catch it.

PrestaShop create new field on Address

Hy,
I have a question where i can add a new field after Company field because i can't find anything for this
Adress link : http://prestashop/address

How to filter REST control based on dojo grid selection?

On an Xpage I have two REST controls that populate two enhanced dojo data grids. One is populated with companies, the other I would like populated with the contacts of the selected company. I am able to select a company and display the UNID of that document in a field on the xpage. I am having difficulty filtering the contact grid based on that UNID. What is the best way to do that? Below is what I have tried
Populate the ParentID field with the selected doc UNID using (CSJS):
var grid = arguments[0].grid;
var index = arguments[0].rowIndex;
var item = grid.getItem(index).attributes;
XSP.getElementById("#{id:ParentID}").innerHTML = item.companyLink;
XSP.partialRefreshGet("#{id:contactListPanel}")
Retrieve the UNID from Parent ID and use in the keys parameter of the contact REST control using (SSJS):
getComponent("ParentID").getValue()
It looks like the contact grid is refreshing when a company doc is selected, however all the contacts for all companies appear in the contact grid no matter what company is selected.
Probably, ParentID field doesn't get submitted to server and isn't available as parameter for REST service.
Transfer company's UNID as parameter in partialRefreshGet() instead
XSP.partialRefreshGet("#{id:contactListPanel}",
{params: {'unidCompany': item.companyLink}})
Read the parameter on server side with
param.unidCompany
and use it as parameter for REST service.

DocuSign API how to sync tags in template with Salesforce fields

I'm trying to send a document from a template using SOAP APi in Salesforce. I used the code walkthrough NDA kiosk as an example. I can pre-set the values but the value of the fields isn't written back to Salesforce. When I send the document from DocuSign button the values are synced as expected.
// Add data for fields
DocuSignAPI.TemplateReferenceFieldDataDataValue fd1 = new DocuSignAPI.TemplateReferenceFieldDataDataValue();
fd1.TabLabel = 'Full Name 1';
fd1.Value = recipient.UserName;
ndaTemplate.FieldData = new DocuSignAPI.TemplateReferenceFieldData();
ndaTemplate.FieldData.DataValues = new DocuSignAPI.ArrayOfTemplateReferenceFieldDataDataValue();
ndaTemplate.FieldData.DataValues.DataValue = new DocuSignAPI.TemplateReferenceFieldDataDataValue[1];
ndaTemplate.FieldData.DataValues.DataValue[0] = fd1;
//LINK THE Object with custom field
DocusignNetApi.CustomField field = new DocusignNetApi.CustomField ();
//field.Name = 'DSFSSourceObjectId';
field.Name = '##SFCustom_Object__c';
field.Value = pCustomObjectId;
field.Show = 'false';
DocusignNetApi.ArrayOfCustomField arrayOfCustomField = new DocusignNetApi.ArrayOfCustomField();
arrayOfCustomField.CustomField = new DocusignNetApi.CustomField[1];
arrayOfCustomField.CustomField[0] = field;
pEnvelopeInformation.CustomFields = arrayOfCustomField;
I do set external object ID in the custom fields and the envelope and recipient status are related to my custom object. I'm not really sure how to achieve what I want. Can someone refer me to a doc?
I found a better way. Thank you for your answer it lead me to a better solution.
For anybody else who struggles with docusign API here is how to do it.
What we did so far was good. The problem with custom field is you can't reference it in custom button. So I wasn't able to see attachments directly on my custom object.
I changed the mapping to point to External Source Id instead of the custom field.
I sent a document with custom button from Salesforce and I used API explorer to get envelope assets - custom fields. This was the result. This is how SourceId from the button was mapped.
{
"fieldId": "84508346",
"name": "DSFSSourceObjectId",
"show": "false",
"required": "false",
"value": "a2H11000001XXXX~My_Custom_Object__c"
},
I changed my code that created the custom field to contain the object name after the ID.
Now I can see attachments when I send the document via API and from button click.
Enjoy all good people!
I do not believe there is actual documentation on the process via the DS API, but you have it correct that you want the objectID to be an envelope custom field. The envelope custom field should be named "##SF{objectID}" so for an Opp it would be ##SFOpportunity.
You'll also need to map back the custom object to the custom field in Connect (via the DS web app), the screenshot is using Quotes, but it should be the same for any custom object.
Also if you want the DocuSign Status on that custom object instructions to map it back can be found here. I think the Status will come back properly despite being sent from the API as opposed to the DocuSign for Salesforce manage package.

How to implement contacts/email address picker like in Apple's mail application?

when sending a mail on the iPhone/iPad you start typing the name of the recipient and list of proposals shows up. Either pick one from those, or continue typing an email address. Adding a new address turns the first one entered into a blue button like thing.
I would like to use this to allow users to select a couple of email addresses. Does anybody know if it is a standard component?
René
I dont really know if it is a standar UI control but i guess you could figure out something with the help of this video, this one uses the UI Person picker to display the persons name
http://www.alexyork.net/blog/post/Selecting-a-contact-from-the-Address-Book-with-MonoTouch.aspx
and with some modifications you could search on contact list and display a modal view with suggestions of the emails in the list
with this example you can get all the emails in the contact list
ABAddressBook ab = new ABAddressBook();
ABMutableMultiValue<string> emails = new ABMutableStringMultiValue();
foreach (ABPerson person in ab) {
ABMultiValue<string> personemails = person.GetEmails();
foreach (ABMultiValueEntry<string> item in personemails) {
emails.Add(item.Value, item.Label);
}
}
With this code you will get all the emails on the contact list in the variable "emails" now you just need to access the "emails" variable and look for the email the user is typing.
Hope this helps.
Alex