What status code represents : POST failed to add an employee because their corresponding id doesn't exist? - status

400 error codes confuse me and I'm not sure which this corresponds to! What status code represents POST failed to add an employee because their corresponding id doesn't exist?

Related

Combine two fields of two different log lines in same index pattern

I'm new to Kibana, i have two log patterns in same index pattern
Example
log line 1 : rejected with ID 123456
log line 2 : rebooking is successful for ID 123456 for US country
I need to create bar chart for country base on the matched ID , something like this "select country from log where message contains "rebooking" AND ID is in (select ID from log where message contains "rejected") "
Please help !
The logs that you're inserting into the ES cluster should be normalized further.
Index should have fields created on which you want your conditions/actions to be based on.
Right now it is as good as searching a text document. There is no way to make sure that the verbiage of the logs will not change causing visualization to be inaccurate.

How to search if a value exists in table

I am trying to delete records via GUI. I have a text input in my section mapped with property (.EID) which intakes employee ID (for example 1) and when i click a button 'delete' that particular record should be deleted from DB. I have written an activity that successfully deletes.
But I want to display a message if the entered employee ID is not present in the table. For example if I have already deleted record 1 and the user again tries to delete record 1 it should display a message saying "employee doesn't exist, please enter existing ID". I have used obj-open->obj-delete->commit to delete the records.
Please help me how to achieve this.
I have attached screenshot of my GUI, for example i have already deleted record no 2, so when user again enters 2 and clicks on delete button it should display a message saying "no such user".
You can launch a local action(flow action) on the delete button.
In the pre-processing of the flow action call one activity. Pass the employee id as parameter to the activity.
In the activity do obj-browse on the table and add filter on employeeid column.
Store the count of obj-browse in a property. If the count of the obj-browse is greater than 0 then delete the record.
The section of flow action will display 2 messages based on when condition. One message will become active when count is greater than zero which will display Account deleted and another message will get active when count is zero which will display account does not exist.

Is there a way to reference data contained in fields on related record using formula field?

I want to display the taxcode custom field on invoice records
According to Netsuite Help, the format for the formula would be like that:
{taxcode.customfieldid}, knowing that (taxcode is the field id for the taxcode field on the lines of invoice record. customfieldid is the field id for the custom field on the TaxCode record)
PS: customfieldid is a free-text
I have tried possibilities like:
{invoice.item.taxcode.customfieldid}
{item.taxcode.customfieldid}
But I still get this error "ERROR: Field 'taxcode.customfieldid' Not Found"
how can I fix this? Can anyone provide some guidance on this issue?
Generally Netsuite will only look one level away from the record you are on.
In your case you should create a new transaction line field (say custcol_tax_extra) and source that from the taxcode so when a tax code is selected that value is pulled up onto the line.
Then your xml:
<#list record.item as item>${item.custcol_tax_extra}...

Conditional field value in Access 2007

I created a database to keep track of customer service related follow-ups in a call centre environment.
My table has, among the others, a Date created field, a Due date field and a Status field (Open, Due or Overdue).
I would like the value indicated in the Status field to update automatically as time elapses.
Can this be achieved and how?
This is absolutely possible. Why not? I would suggest you do the following:
(1) add another status to the status field called 'closed'
(2) determine from a logorithmic perspective what 'Due' means (e.g. if the current date falls within 5 days of your due date
(3) Write a query which updates your status either 'due' or 'overdue' depending on what the current date is
UPDATE tblDue SET tblDue.Status = "Due"
WHERE (((tblDue.DueDate)=Now()));
UPDATE tblDue SET tblDue.Status = "Overdue"
WHERE (((tblDue.DueDate)>Now()));

RESTful URI's, Creating a new noun/uri or add a queryparameter

I have a Person class with a one to many relationship to Employment. A Person in the CRM can have multiple Employments (historic data).
My current REST URI for this class looks like this:
http://domain/persons GET [collection]
http://domain/persons/{id} GET [resource]
http://domain/persons/{id}/employments GET [collection]
To get the CURRENT active employment (so the employment where the endDate is NULL) should I create a URI or should this be done using a QueryParam?
Basically should I do this:
http://domain/persons/{id}/employments/current GET [resource]
or
http://domain/persons/{id}/employments?current GET [collection with query param filter]
I'm thinking the second one (with the queryparam) because as far as I understand REST a resource should be identified with a non changable URI. Since the current employment position can change it should be done with a QueryParam.
What are your suggestions?
I would do it by identifying uniquely each employment like this:
http://domain/persons/{id}/employments/{id} GET [resource]
Update according to comments info:
When user calls GET http://domain/persons/{id}/employments/, she could be able to use a filter like ?state=current which would return the resource that refers to the current employment and is uniquely identified by something like http://domain/employments/{id}.

Resources