Microsoft Dynamics Web API | PATCH invoice detail - dynamics-crm

Does anyone know how to update the invoice detail entity along with Invoice under postman? I have searched google but not find many useful answers for this. I even try to use odata.bind annotation but still not able to solve my issue here. Basically, I just want to update Invoice Details along with Invoice in one API call. Any help will be appreciated.
Thanks in advance.

We have a concept called deep insert for creating parent and child record in one call. Unfortunately for updating/patching we have to deal with one object at a time. ie invoice and invoice detail separately.

Related

Update entity with OneToMany relationship with JPA/Spring

I've been researching this for a while and still couldn't find a satisfactory answer for my problem.
I have an entity on my postgres DB (product) that has a ManyToOne relationship with another entity (Dun).
Each product may have N duns.
On my PUT endpoint, the desired behavior would be:
Every time I update a product, it replaces all the duns with the ones provided on the endpoint.
Is there any way to handle it automatically by Hibernate/JPA?
In order to make it easier to test and explain the issue, I've uploaded a project on Github on the following link https://github.com/brunapereira/jpaexample
If there's no way to handle it automatically by JPA, what's the best way to solve it with code?
Thanks in advance,
First, you need to remove Duns by product id, then get the product by id, add the new duns then save back.

Update Fields Supplier Invoice

I'm looking for an Odata service that can update values of supplier invoices. I know that I can do it using BAPI, but I would like to know if there is a way to do it using a update from OData service or something similar.
The fields that I want to change are:
Block a Payment
Change Assignment Number
Change Payee
Thanks in advance.
As of now it is not possible to change fields of a supplier invoice. Looking at the API Hub you just have the option to create and read supplier invoices as well as releasing/canceling them.
To request a change in the API you can submit a request in the Customer Influence Site.

Crystal Report creating a receipt register report 2

This question is related to my first question, see it here: Crystal Report creating a receipt register report
I already done some parts of my report with the help of a good person(Siva) but I'm on much bigger problem I think. It's about my sundries section.
In my table
and I want to display my report to look like this.
And this is what I'm getting...
You can see in my table that the record with RefNo: 1003 has a lots of account that has been paid. Unfortunately the reports I'm getting has no record of AccCode: 4200 Housing Loan with a credit of -$40.
I don't know how to achieve this again... I'm placing all the details in a group footer of field name RefNo.
Please someone can help me to this, you can just give me some idea and I try to handle it. Thanks in advance.

When are Magento rule-based product relations worked out?

Magento's rule-based product relations (up-sell, cross-sell etc) are stored in a database table, and I assume they are updated once in a while. Unfortunately, I can't find any documentation about when that happens or what triggers it. Is it:
Cached, like a block, and expires after a certain time?
Generated whenever you save a product?
Generated by CRON?
I'd really appreciate it is someone could fill in the blanks for me. I'm using the Enterprise edition, if that helps or makes any difference.
So I dug around the product link data a bit. The relevant object we're looking at here is catalog/product_link, which the catalog/product object uses to retrieve linked object data.
While grouped and bundle products seem to write to this in cronjobs, I have not found any cases where this data is written in a cron-job for actual upsell/cross-sell products. I will keep digging a bit, but this seems to imply that the products are calculated at save time.
Hope that helps!
Thanks,
Joe
Search for the observers on events "catalog_product_save_before" and "catalog_product_save_after" to see in your project when it is fired and what function is called.
In the enterprise edition the observer fired is enterprise_targetrule/observer, function : catalogProductAfterSave ...

Creating a Relationship Between Order Product (salesorderdetail) and Service Activity (serviceappointment)

We are using Microsoft CRM 4.0 to run a consulting business. Its working pretty well but we want to simplify the way we are doing some things. What we want to do is create an Order (salesorder) with multiple Order Products (salesorderdetal). So good so far.
Next I want to be able associate each Order Product (salesorderdetail) with a Service Activity (serviceappointment), this representing that this billable line item in the order is actually going to be fulfilled as a consuting engagement.
The problem is, I can't seem to be able to create an association between the Order Product (salesorderdetail) and Service Activiy (serviceappointment). It simply doesn't appear in the drop downlist.
Can anyone think of a reason for this? I've seen some posts about relating field mapping between Quote Product, Order Product, Opportunity Product and Invoice Product, but that isn't quite what I am after.
Any suggestions gratefully received - even if it is an explaination of why its not possible.
I created a simple 1:N mapping from Case to Invoice. The Case records its ID and Title in custom fields in the Invoice. Unfortunately this does not allow for product creation as children of the Invoice, so that should be created as a custom code workflow.

Resources