Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact update from Zapier clear contact owner #25

Open
1 task done
PierreAmmeloot opened this issue May 13, 2022 · 3 comments
Open
1 task done

Contact update from Zapier clear contact owner #25

PierreAmmeloot opened this issue May 13, 2022 · 3 comments

Comments

@PierreAmmeloot
Copy link

PierreAmmeloot commented May 13, 2022

Mautic Version

4.2.x series

PHP version

7.4.29

What browsers are you seeing the problem on?

Not relevant

What happened?

Hello,

When I update an existing contact in Mautic from Zapier and this contact has a "contact owner".
Then Zapier deletes the "contact owner" and sets an empty value.

Capture d’écran 2022-05-13 à 18 15 14

I think it's a bug. I don't know where to look.
Do you have any suggestions for me?

Pierre

How can we reproduce this issue?

Step 1: create contact and assign contact owner
Step 2: connect Zapier
Step 3: "create or update contact" from Zapier

Relevant log output

Not relevant

Code of Conduct

  • I confirm that I have read and agree to follow this project's Code of Conduct

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@RCheesley
Copy link
Sponsor Member

Hi @PierreAmmeloot what value have you set in your Zap for the contact owner? I guess that it is setting it to blank if it does not have a value. Moving this to the correct repo.

@RCheesley RCheesley transferred this issue from mautic/mautic May 17, 2022
@escopecz
Copy link
Sponsor Member

It should leave the owner with the previous value if there is none set in Zapier. I think it is a bug around

if (dirtyContact.owner && typeof dirtyContact.owner === 'object' && dirtyContact.owner.id) {
contact.ownedBy = dirtyContact.owner.id;
contact.ownedByUsername = dirtyContact.owner.username;
contact.ownedByUser = dirtyContact.owner.firstName+' '+dirtyContact.owner.lastName;
} else {
contact.ownedBy = null;
contact.ownedByUsername = null;
contact.ownedByUser = null;
}

@PierreAmmeloot
Copy link
Author

Hello @RCheesley, when I create a Zap connected to Mautic with the value "Create or Update Contact in Mautic" I cannot define the owner for the contact.

Thanks @escopecz ! :-)

Pierre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants