Is there a function to track changes on a status field, and trigger actions for specific changes - zoho

Is there a way to track the changes on a status field and specify different actions based on different statuses? The key here is the ability to differentiate two scenarios:
status being changed from In-Progress to Completed
status being changed from Publish CADs to Completed.
I want to trigger different actions based on different scenarios and look for a Deluge or Python script.

Related

How to verify data in the table is as expected?

I need to implement the following check in Cypress step. There is a page which contains a table. Table columns: Task name, Status, Created At. In the test, I invoke several tasks, and then I need to navigate to this page and verifies that tasks in the table are in Completed status. The page is not refreshed automatically, so I need to reload it with code.
What is a correct way to implement such checks in Cypress?

Sending unnecessary data in one query response or making multiple queries?

I have been working on a project. I always followed this idea. Don't send all the data in one call.
Here is an example,
Suppose there is an API to return all the list of students that can be added to test they need to finish.
So, on UI side every student have one button "add" which will show a pop up if the student is already assigned to take the test. Or it will show a pop up he has already finished the test.
I could join many table and send all the data in one api call while fetchig students. Or
I could send the send the students and then on "add" there is another API to make sure the above mentioned conditioned met.
Which approach is better?
Because If I send all the data in one api call, there might be only few students be assigned the test.
Checking if a student is already assigned or not should happen in the backend, not frontend, and also atomically so as to prevent duplicates - either using a database transaction or a unique constraint.
When the Add button is clicked then in any case a backend call will need to be made (to perform the actual Add). If the add failed, the backend can interpret the "unique constraint violation" database error and return a "student is already assigned" message.
For the rest of the question, the rule is simply: don't fetch more data than is required by the UI.
If the Add button is always shown regardless of whether or not the student is already added, there is no need to retrieve this information beforehand.
But it might be useful to give a visual indication of which students are already added, in that case obviously there's no choice but to retrieve and return this information to the UI.
Fortunately GraphQL is precisely the tool for this job - it makes it possible for the UI to request exactly what information is needed for a given page, without having to code each and every possible query by hand.

Using workflows in Dynamics CRM. Static fields?

My first question here. I am relatively new to Dynamics CRM and I am looking to do a customization using workflows and I have run into some issues.
I need to trigger an email to a user if I have 5 records with a specific value chosen in an option set within the last 15 days.I thought I might need a static variable kind of field for the entity. I don't really know how to get that in CRM.
While I have been able to use workflows to get the records within the 2 dates and increment the count for that condition, the count maintained is not static and so it is basically useless for my requirements.
Any suggestions to work around this?
One way of doing it is to have a custom workflow.
Whenever a new record for that entity is created, run this custom workflow and get the count and return it via an Output parameter. Check for the output value and if that is more than the threshold as in the requirement, then consider the step for sending an email to the user, otherwise complete the workflow as succeeded.

Display work items which are waiting until backend service finishes

In my workflow I have iterative loop which check the table value until it matches a workflow value using DB Execute.
This stage arise after completing initial and step After values matches it will proceed to next step.this has created by adding delay function.
However my client required to show the list work items which are pending withing content navigator. Is there a way to achieve this.
Try to add users (who want to track status) in F_Trackers system Workflow Group.

Magento: How do i change the status of order after creating Invoice

I have a problem when i was trying to create invoice. I want to change custom order status at the time of creation of invoice currently when invoice is generated it take automatically COMPLETE status that i want to change to dispatched status. But i am not able to do the same.
Please help me anyone to sort out this issue ASAP.
Thanks,
Nilesh
First you need to understand order states.
After order has been placed, it gets New state. At that point, you can Hold it, Ship it, Invoice it or Cancel it, thereby assigning your order Hold, Processing, Processing, or Cancelled state, respectively. Once you ship and invoice, your order receives Completed state.
Now, each of these states can have a separate status, that you can define yourself if System -> Order statuses. In your case, if you want the order to say Dispatched, after you are finished shipping and invoicing, you would add Dispatched order status and assign it to Complete order state. Same goes for any other order states.

Resources