XERO API: Synchronising Attachment changes for Xero Invoices - ruby

My Xero app synchronises itself on a regular basis and checks for any Invoice changes. If there is an changes to an invoice it will be generally picked up when the ifModifiedSince option is supplied.
This is the query command:
client.Invoice.all(
page: source_page,
modified_since: #invoices_modified_since,
where: { date_is_greater_than_or_equal_to: #from, date_is_less_than_or_equal_to: #to }
)
The problem is that I want to receive an update if an attachment has been added to the invoice. At the moment this doesn't trigger an Invoice update.
Is there anyway of knowing when an attachment on an invoice has been added or removed?
Here is my testing case:
Make a new Invoice (no attachment)
Add an attachment to the invoice
Resync and watch the Xero log
Remove the attachment from the invoice
Resync and watch Xero log
Expected: should see invoice being sent by Xero for syncing/updating
Actual: No invoice data is sent by the Xero API
Many thanks!

This has already been requested on Xero UsetrVoice page here. The intended purpose of
UpdatedDateUTC primarily is to see payments added to invoice. Unfortunately Addition/Changed to attachments to an invoice doesn't change the updateddateutc. If you’re keen to see this implemented soon please vote for the feature request, that way you can also get automatically intimated once this has been implemented.
Hope this helps.
Cheers
Sri

I contacted Xero and they got back to me. That is pretty good to begin with!!
Anyway, at this point there is no way to do what I want. According to Xero the main use of the update/modified_since feature is to see payment changes.
However, it has been submitted as a feature request to Xero and there is more information here too: https://xero.uservoice.com/forums/5528-xero-accounting-api/suggestions/90148-update-the-updateddateutc-when-an-invoice-is-modif
Perhaps there is a different way, but not via the modified since option.

Related

Logic apps against EOL Shared MBx

I am VERY new to Azure Logic apps. Please be gentle - but any links to sources of learning will be appreciated as well.
I have a made a simple logic app at the request of the business that answers every e-mail received in a shared mailbox with an autoreply - instead of the standard "one per customer" action of the normal Exchange Online autoresponder.That part works just fine.
We now need to add an action that can delete without replying for specific senders. Why? We "found" another org that must be set up to do the same thing, thus causing a flood of responses between the two org's Autoresponders. Not surprising, but obviously not good.
I'd like to be able to add the relevant address (and be able to add addresses in the future) to a (parallel?) filter, that would prevent this loop from happening. I've tried my best to use the "Delete Email (V2)" built in function for "Office 365 Outlook" but it always ends in a "Resource Not Found (status code: 400)" error and the email isn't deleted/moved to the deleted items folder.
Any ideas how to either get this to work, or a better way to do this job?
Thanks,
Mule
I have a made a simple logic app at the request of the business that answers every e-mail received in a shared mailbox with an autoreply - instead of the standard "one per customer" action of the normal Exchange Online autoresponder.That part works just fine.
As mentioned in this statement, we understood that you are using When a new email arrives (V3) trigger to give an auto reply.
I've tried my best to use the "Delete Email (V2)" built in function for "Office 365 Outlook" but it always ends in a "Resource Not Found (status code: 400)" error and the email isn't deleted/moved to the deleted items folder.
To make this work you just need to give the message id from the trigger When a new email arrives (V3) and so it deletes the one that has already arrived. You can make required actions in between before deleting the mail.
Considering this to be my logic app
I could able to get the email content to my logic app from outlook in Get email (V2) step and as soon as it completes this action the Delete email (V2) executes and deletes the one that just arrived.
Here is the email that I'm receiving
and the successful run for my logic app
For more information on logic apps you can refer Introduction to Azure Logic Apps - Learn and Azure Logic Apps documentation
REFERENCES:
Office 365 Outlook - Connectors
Ultimately a better answer was to use different variable for the conditional. Using an OR conditional with several archetypical subject lines, as well as embedding "invisible text" in the body of the original response email was the solution, as Logic Apps seems incapable of pulling the Message ID through the steps.
Thanks for your help #swerhakandikonda.

PayPal REST API not returning recurring payment information in laraval

I am working on Paypal webhook (subscription) section to insert recurring payment information into the database. I have done coding based on the link "https://jslim.net/blog/2018/01/22/PayPal-Rest-API-with-Laravel-5-and-Angular/" but Paypal webhook always return “payment_status: Pending” on sandbox image and its not inserting recurring payment information into the database (insert option added in PayPalController - function webhooksPaymentSaleCompleted ).
I think the problems related with routes/api.php file but I can't figure out what exactly is going wrong.
Another URL that I have referred and tried was "https://github.com/supermavster/PayPal-PHP-SDK"
Laravel version 5.8
paypal/rest-api-sdk-php: "^1.14"
Please suggest a feasible solution to this problem.
Thanks in advance.
Verify that the sandbox account's email is confirmed, by logging into the sandbox business account receiving the payment and navigating to: https://www.sandbox.paypal.com/businessprofile/settings/email
Resend the confirmation message. Open the message via https://developer.paypal.com/developer/notifications/ , and confirm the sandbox email.
The v1 PayPal-PHP-SDK is deprecated and there is no reason to be using it for a new integration. Use the v2 Checkout-PHP-SDK for payments.
You'll need two routes on your server, one for 'Set Up Transaction' and one for 'Capture Transaction', documented here; https://developer.paypal.com/docs/checkout/reference/server-integration/
The best approval flow to pair it with is https://developer.paypal.com/demo/checkout/#/pattern/server

Add subscriber to automation multiple times in MailChimp

I've a MailChimp Automation for an custom e-commerce. I want to use my MailChimp Automation Workflow to send information to customers when they have placed an order. Overview:
Send order information
Send mail #2 after 2 days
This works great, but here comes the problem!
The user (with the same email) creates one more order 1 month later. I now want this customer to be placed in the automation again, but instead I get an error "You've already sent this email to the subscriber.". I'm using MailChimp API v.3.
How can I possibly add this customer to the same automation workflow again?
Thanks in advance!
This can't be done. We ended up using Mandrill instead. Hope this helps!

Add unique key of my own to slack event requests

I created a slack app with distribution (multiple clients)
and I subscribe to events several events like a message posted in a channel.
Beside the team_id field for identifying the client team - is there an ability to put my own key for a client?
Thank you.
No, Sack does not store any custom data for you. Its your job as an app developer to store all team related information for your app and link it to the Slack team_id. This is usually done with a database.
You can however include custom IDs with Slack requests, e.g. in the response you get from an interactive message. See this answer for more details on how this works.

How to get updated message in yammer using API

I get all messages using API and store their in my database.
If an user modify his message that I have been got, how could I get this new message modified?
Does someone know what method to use or what API because I need to retrieve this text modified and update the older
Thanks a lot for your replies
You should use the [Data Export API][1] for this task. The MessageVersions.csv file will be updated with changes that you can review. There have been no changes to the REST API surface for the Edit Post feature.

Resources