I need to update order state remotely. Is it possible to update it via SOAP?
I know about "sales_order.addComment", but it updates only status not state.
My version is CE 1.7.0.2
Thank you.
As i know we can not get state about order Also you can get only information about an order and add a comment to it.
You cannot edit or delete an order.
You have to create your own API if you need that. See this link to see what is possible with the API: Magento Core API - Mage Sales
hope you can understand this concern.
Currently magento do NOT have a soap api to update order state, but you could create you own custom api take a look # Creating a Custom API or Extending the Core API
A bit of a necro answer here, but one basic strategy might involve a basic cron task that runs every few minutes.
Since you can update the status via the API, you might create a couple new custom statuses that you update as needed. The first status would mark an order as being ready to be consumed by your logic, the second status marks an order as done being consumed.
Then your cron script could just check for orders that are done being consumed which you can then use standard Magento standard model operations to update the state.
Related
In the builds web UI there is a column labeled "Trigger". For automatically triggered builds it has the value "Push to branch-name branch". This was added recently and is very useful.
I want to add the same (or a similar value) that displays in that column when I use the projects.triggers.run API to run a trigger through the API. I looked at the help page here but I cannot see a way. Is there a way that maybe is not documented yet?
The way to run that trigger would be to specify the Trigger ID. If you were to follow the trigger that links to, the url is in the form ".../cloud-build/triggers/$TRIGGER_ID/..", so you could use that to get the ID.
Best,
Ben
recently I have been working with symfony 4 in search of some solution for the creation of web services api-rest and I have found api-platform. After several days trying, because I do not have much knowledge of symfony, I managed to raise the API for an entity that I created by default. It turns out that now I have the doubt of how to add to the api methods other than those that are by default, say the put, the get and others that are already by default, I want to be able to add to my entity the methods that I estimate necessary and with the name that I want. Please I would appreciate your help with some form or some simple steps that allow me to add new methods to the api always keeping in mind that I do not have much knowledge in the matter.
try to avoid endpoint proliferation as much as possible, think REST
the recommended way to hook your own logic in API Platform is using the built-in events
if you really need to add custom endpoints, here is a dedicated documentation entry, but it should be your last resort (see 1/)
I am currently developing a web application using Laravel and AngularJs. One of the requirement in document module is, that they want to create, update documents like Google Docs or Zoho Docs.
I googled but couldn't find a solution.
How can I implement it? It seems like that it is a big task.
It is a really big deal. There is an example flow how an implementation could work like:
keep track every change (for example keydowns) on client side
create a patch message
send the patch to a backend server
notify all of the other users that the content has been modified and send the patch to apply
apply the patch on the client
repeat each and every time something is changing
Of course the backend has to accept messages from all of the clients and distribute it to all of the other ones which has the same document open. Google Docs is working in a similar way you can check it in the developer tools of Chrome for example or check operational transformation.
Edit
Use the API of one of the mentioned services instead of building an own module. https://www.zoho.eu/docs/zoho-docs-api.html
For goole docs you could use the following with angular js:
https://developers.google.com/drive/v3/web/examples/
I am using GIGYA gamification custom actions for a POLL in a website. As per the documentation I have created a Custom Action. Then, I created a html page which has the poll layout and included Gigya's api key and used gigya.gm.notifyAction function. My questions are -
This function as per my understanding will notify the custom action. How can I and where will i see the results. Do i need to use another function to get the counts.
Can someone provide a small custom JS code for Gigya.
We do have an example site which will show you how this is implemented. Although the site uses loyalty, you should be able to adapt it to what you want it to show using gamification. The url is: http://raas-demo.gigya.com/
You can also download the websites source code as well.
This will explain about:
http://developers.gigya.com/display/GD/Loyalty
Kind Regards
Nadeem R
I have 2 entities (for this example) in CRM 2011 - Account and Case. The Account holds all of our clients, the case holds individual work actions for an account. When a case is created one of the input fields is the Account.
What I would like to do is upon the user selecting the Account, execute some javascript to look up the account entity to display some additional information.
So far I have got the javascript working that triggers the onchange event of the Account field, and it correctly gets the selected Account, but I don't know what the next step is.
I'm new to CRM so don't really know if what I'm asking is actually sensible, if there is a better way then please let me know.
Thanks!
For the record, the way you were thinking about doing things would be completely supported, and TechHike's method is supported in CRM 4, not CRM 2011. Steps you would take:
Use CRM 2011's web resources to upload a script file that does what you want.
Use the form editor to make your javascript method from step one fire when the Account field changes on the form
Make a request to CRM's REST endpoint (http://msdn.microsoft.com/en-us/library/gg334767.aspx) to retrieve the details of the account selected
Use the results to populate fields on the form, show a popup with details, etc.
There are plenty of examples of caling the REST endpoint from JavaScript in the SDK (http://msdn.microsoft.com/en-us/library/gg309408.aspx). Good luck!
Matt's post above contains everything you need to know, but you might also find the blog post below useful. It basically describes the same scenario where you have a 1:n relationship (such as Case and Account) and details how you can pull information from a specified lookup (e.g. account), using the REST endpoint (as Matt has already mentioned) and display it on the form.
http://community.dynamics.com/product/crm/crmtechnical/b/crminthefield/archive/2011/02/07/showing-related-information-in-a-crm-2011-form.aspx
The blog post includes a link to download a CRM2011 solution already built to give you something to look at how they've achieved this (useful if you're new to CRM2011).
There are two ways to do this, and you may be best to do them both in parallel:
on the Account > Case relationship edit the Mappings. When a user goes to an Account and uses the left navigation to look at Cases (or a grid of Cases on the form) then hits "Add New Case" they are creating a Case from inside the "context" of the Account. You can copy any fields you want to from the Account to the Case record at this point - the Mappings define what field from the Account are copied to which target field on the Case. This will always be the most robust, easiest way to do it but relies on the user starting in the right place.
on the Case for you could also add an onChange script to the Parent Customer lookup to fetch the data from the parent record. I think Stephen's link is probably the best way to do this as it does not copy the fields but allows the user to see them anyway, which is better database design (from a purist standpoint) and means the user always sees current info about the Account rather than possibly out of date stuff. Alternatively if you actually need to copy some fields (maybe the customer's normal SLA say) so that you can use these in other such as scripts or workflows on the Case then have a look at this article: Disabling the selection of contacts for opportunities all the way
Although this is about a slightly different topic, the script there fetches the Account details of the parent Contact - you want to fetch values from a parent (llokup) field so the approach is the same, just different in the detail
There are various ways to do this but I would recommend doing it the supported way, without javascript. This may not be as pretty but it is likely much easier. The scenario would be to add a left navigation link to the case entity that when clicked will update the content area to show the details of the account.
To add a link to the left navigation you will need to configure the isv.config file to have an extra link for the case entity.
Here's an example:
http://support.sfusion.com/kb/hosted-microsoft-crm-4/how-do-i-modify-the-isv-config-file-in-microsoft-crm-4/
You can also lookup isv.config customizations in the SDK, found here:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=82e632a7-faf9-41e0-8ec1-a2662aae9dfb&displaylang=en
Next you will need to create a custom aspx page in the ISV folder of the web server. This page will display all the information about the account that you want to show the user when the left navigation link is clicked. The ISV.config as an xml property that allows you to pass all the context params to your page on the querystring. Make sure when you create the link to turn on this attribute.
Now the only tricky part is that in the page you will need to use the CRM web service to display all the account details that you interested in showing the user. I won't do into details on this. You can find great tutorials on the web or in the SDK if you haven't done this before.