Add multiple person to Xero Contact using Workato - api

Good day Everyone,
I am using Workato and I want to create a recipe that will add multiple person to a specific contact in Xero. At the moment, I've tried to use foreach loop in workato and inside in it, I add a person to a specific contact. But it seems like during the creation of new person, it will only override the existing person in xero therefore only one person will be saved. Does someone know how to fix this problem? Please help.

You could use Add person(s) to contact action to add multiple persons to a contact.

Related

Shopify create order admin api not taking email all of a sudden

Admin API 2021-10 Orders endpoint is throwing the following error for already existing user
{\"customer\":[\"Email has already been taken\"]}
This problem was not there before. Does anyone know if something changed recently API-wise? no documentation regarding the update was found
Usually when creating orders, you would want to use a Customer ID for an order when creating it. So you check, via email, does this customer even exist? If it does, you just provide the ID. If you skip that step (remember, customers are a separate aspect of Shopify Orders), you may then run into this issue. Shopify is given an email, tries to create a customer, and the system says STOP RIGHT THERE, this customer already exists, and you never provided an ID.
Sounds weird, but maybe you never encountered this issue because you just never ran into repeat customers? As you know, most orders are one-time and not repeat at a lot of stores.
Not sure this explanation makes total sense, but anyway, the workaround I found was just to establish the customer BEFORE trying to create the order. Either you use an ID for an existing one, or, create a new one.

How can I fix the rendundancy in my ER-Diagram?

I've a problem with my ER-Diagram, I hope somebody can help. The scenario: users can create contacts. The user can also add notes to the contact. The note consists of one text field. The contacts can be connected to the notes, that means; one contact can be linked to several notes and one note can be linked to several contacts. Now I have an entity "User" and an entity "Contact", it's a many to many relationship. But I'm stucked at one point: I'm not sure if "Note" also have to be an entity, because I've to show the many to many relationship between the notes and contacts, but I've also to show the relation between the user and the note. This would lead to a circle which is redundant. Any help would be appreciated thanks!
You definitely need to show note as an entity. Now, since you already defined a relationship between contact and note there is no need to show another relationship between person and note. You can get note for a user with user and contact combination.

Updating an existing Contact

I am using xero-java-sdk. I am looking at updating an existing contact. There is a method in accountingApi
updateContact(contactId, contacts)
It is not clear on how to use that method. Can someone give an example on how to use.

elixir guardian get current user in model

I can't get current logged in user in my model. There are many things which I wanna do with that. e.g when a user creates a blog post, I want to associate with that user. User has many blog posts. There are many scenarios in which I need current user.
One solution I can think of is to add a virtual field to all of my schemas after authentication assign current user to that virtual field. But I dont wanna repeat to add that virtual field to all of my models.
Note: this question has been asked before and someone tried to send a conn object to model which is discourged.
Thanks in advance
Have a look at a simple tutorial here, also this one is pretty nice.

How do I create a custom payment module on Prestashop without a credit card?

This is the first time I've asked a question on here so I'm sure I'll be off on the question I'm trying to ask, but here's what I'm dealing with:
I'm using prestashop on my website that will only accept payment from people within our Bartering service group. So the only information needed for them to place an order is their contact information and their personal ID from the Bartering group so that we can accept the order and make sure they apply that. So I want to change the checkout to not actually charge anything, but rather send an email to the sales team and to the customer containing the product they ordered and their personal information. I've already done a couple of overrides with prestashop, but I haven't been able to find what all modules/classes need overridden for this particular issue.
Any advice even a basic list of what modules and classes to look at would be helpful. Thanks in advance.
Edit: Thanks for the advice folks. I think the module should be pretty straight forward. It does not have to charge any balance or anything, just send an email with the order details and customer info to both us and the customer.