Linking Marketo Custom Object to Lead via SOAP - soap

How do I link a custom object created via Marketo's SOAP API to an existing lead?

In your custom object, you can define one of the fields as a 'link'.
In the web interface , when you select 'link', it reloads the dialog and gives you the option to select the linked object type (Lead) and the field to link with (ID).
When you create an object using the SOAP API with a link field like this, you can give the custom object your lead ID to link it.

Related

Custom POST/PUT route/endpoint based on meta value

I'm currently making a store which is receiving it's data from external sources. Being new to the world of editing/creating REST API, I've come across a problem. The problem is that the external source have no idea what ID the product gets in woocommerce so update/delete products is not possible with the current endpoints/routes. However, the external source does have it's own ID on it's product and I've stored this in a custom meta field in woo and I can see it and update it through api on Postman.
How can i create a new endpoint/route that uses the custom meta field called externalProductId and use this to update the product instead of the woocommerce ID?
What you can do, which I particularly did in my case ... Create a field id_product_woo in your external bank, the time you create the product in Woocommerce, it returns a JSON with the information of the product created, including the ID inside Woocommerce... When you create or update a product in Woocommerce, you then pass the id stored in the id_product_woo field of your external bank.
Apparently, this for me, worked perfectly.

square listCustomers call does not include custom fields in Response customer object

I'm trying to come up to speed on the Square API. I have been able to successfully create a post call to CreateCustomer() and a get call to ListCustomers(). In both cases, the customer objects come through fine but the custom fields I have added to extend the customer object are not present. When I add, view and edit Customers using the Square Dashboard they show up as expected. They are also present if I export Customers from the Dashboard.
Is there a way to get the custom fields to be included in Square's Rest API calls?
At this time Square's APIs will not return custom fields.

How to add applink to custom story via Object Browser? (hosted object)

I'm trying to post custom story with applink. I have defined action type complete and an object step - so user can "complete a step" inside app. Then I defined one step using Object Browser. How can I add applink via Object Browser?
There is a field al:android, which I assume needs to be filled with data. There is a hint stating that I should put there JSON object or array. So I did.
Tried with:
{"package":"com.example.myapp","class":"com.example.myapp.MainActivity","app_name":"My Example App"}
I've got error:
Is there a way to make this work?
You can use Facebook Mobile Hosting API to create App Link objects. Here is documentation: https://developers.facebook.com/docs/applinks/hosting-api
Should get in return something like this: {"id":"643402985734299"}, this is the ID of hosted applink - try with it.

RestFB publish custom action and object

I'm just getting started with Facebbook API/OpenGraph and RestFB.
I created a custom object and action type on Facebook.
However, I don't quite get the concept of how RestFB works with publishing an action with an object.
I'm able to publish an action (complete) like this:
FacebookType publishMessageResponse =
facebookClient.publish("me/myapp:complete", Post.class,
Parameter.with("mycustomobject", "http://samples.ogp.me/xxxxxxxxxxxxx"),
What I don't understand is how to create an object with all necessary parameters and pass it into the publishMessage. In this case I just linked to the sample object that was provided by Facebook for illustration.
What I don't understand is how to create an object with all necessary parameters and pass it into the publishMessage.
Open Graph objects are basically just URLs.
You put all the necessary info into the HTML that this URL delivers, into the Open Graph meta elements. (See OG docs for this.)
Then, when publishing your action on an object, you just give that object’s URL, and Facebook will fetch the data from there. (Unless you have some additional custom properties, for which you can also give the values while publishing the action).

How do I retrieve custom properties of a custom open graph object?

I defined a custom Open Graph action (e.g. "drive") and a custom object ("car") with custom properties ("color", "make"), then added the meta tags to the object page and verified with the Object debugger. I also published few actions in my timeline.
When I use the action API to view the "drive" actions ("/me/[name_space]:drive") I see all the actions and the Objects with their default properties (ids, titles..) but no custom properties.
How can I retrieve the Objects with all their custom properties?
It is probably too late, but I encountered with the same problem today.
It seems that the custom action /me/[name_space]:drive only provides the standard properties, but I found that if you also include the object type you can retrieve it with the custom ones:
GET https://graph.facebook.com/me/recipebox:cook/recipes
or in your example:
GET https://graph.facebook.com/me/[name_space]:drive/car