automatic email on formsubmit - forms

Whenever a form is submitted I want an automated(professional-looking) email to be sent to the customer in the following format attached to this post. [![sample screenshot]
(https://i.stack.imgur.com/aoZC8.jpg)](https://i.stack.imgur.com/aoZC8.jpg)
Also, there are many fields that the customer won't fill while filling the form. So they will be left blank. As Shown in sheet named "Form responses 1" of the spreadsheet shared with this post.
In the "Order Sheet". I have managed to apply the formulas and removed the blank spaces and also made more columns like order total and quantity total. These formulas are dependent on the "form responses 1" sheet and "price list" sheet.
I madea separate sheet "order sheet" So that the "order sheet" looks clean to see . as it is a sample spreadsheet only. So that is why data is less. Otherwise if I dont make the "order sheet". and only reply on the "form response 1" sheet. then it would be very hard to understand what has been ordered or not.
So email should be sent on form submit but as per the columns of "Order Sheet" of the sample spreadsheet.
Also you can see in the "order sheet" that not every customer has ordered the same thing. So how can I make this dynamic in my email .
Also I tried some addons but it doesnt give desired result. As i think script is more powerfull and we can do almost anything with it.
Hope you understood the problem
Link to the spreadsheet sample is
https://docs.google.com/spreadsheets/d/1eS3B9uYi3PRnuxdvUn-R2j-hy6TabvEYtCrGXnwYEJ4/edit#gid=609615747
As I am new to this appscript. But watched some tutorial and here and there read forrums but couldnt get the full outcome which I want.

Related

Crystal reports grouping by date, does not shows detail of records by the grouped date

I'm having a problem with the records showed in the detail in which should be all the records grouped by the date field.
I want to group all the invoices done in one day, without doing it by day of the day, ex. Monday, Tuesday, etc.. That's not what I want, I want to show the Document Date (group) and the invoices sold in that date under it.
Please see the graphic attached, the detail record does not belong to the group.
I'm using Crystal Reports 14.1.5.1501
Thank you very much for your help!
enter image description here
enter image description here
Added two more screens, to verify it's the same field.
enter image description here
enter image description here
I finally found the problem, when creating the group, I did not notice that for some reason under "The section will be printed for each" drop down list, it brings "For each week" by default instead of “For each day”. I created another report and the same thing happened, that's why it was driving me crazy. Like I said "It has to be something simple". I had to search for a youtube video to realize that.

If it's possible, is there an option or other way to change a "Sublist Field" column's display type within a transaction form in NetSuite?

I need to change two columns in a Sales Order's item line section (bottom of the page) in NetSuite: https://i.ibb.co/27vx9Dr/2019-06-20-10-41-13-Window.png
It feels like the solution ties these two together as they are both perceived as item line fields or "Sublist Fields" (according to NetSuite's customization form page).
INVENTORY DETAIL needs to be enabled or set to "normal" so I can be able to specify bins associated from my selected item or be able to interact and fill in this column at the basic level.
AMOUNT needs to be set as "inline-text" so that other people handling sales orders cannot disturb it at all and still be able to see the value of this particular column.
I have attempted to search through Customization > Lists, Records & Fields and searched the following options: (which I thought were relevant to the fields that I wanted to modify)
Item Fields to no success
Transaction Body Fields to no success
Transaction Line Fields found out that AMOUNT and INVENTORY DETAIL are both padlocked
I also attempted to search through Customization > Forms and I have spent a long time looking through my Sales Order custom transaction form (possibly missing out on menus unintentionally) to no success.
I know that inside Customization > Forms > Entry Forms there is an Inventory Detail form in there that shows exactly the window I'm expecting, but I haven't figured out how to customise anything in the columns item line for transaction forms yet so I can create a custom column containing a link to INVENTORY DETAIL simulating the typical behavior of the original one while hiding the disabled one.
Near the top of a Sales Order form, I went to Customise > Customise Form and found out that I can find both AMOUNT and INVENTORY DETAIL inside the Sublist Fields tab.
Unfortunately, it only has SHOW toggles and this does not do what I need for it to do.
It is clear that I am confusing Sublist Fields with Screen Fields where I expected there would typically be a DISPLAY TYPE column that bears the drop-down selections containing "Normal", "Inline-Text" and "Disabled" options.
In actuality, they have SHOW checkbox toggles for both INVENTORY DETAIL and AMOUNT where the AMOUNT checkbox is greyed out. (This still does not achieve or reflect what I need it to do)
I am unaware of the conditions that needs to be met for AMOUNT to behave as an inline-text. There is probably another condition that needs to be met for the INVENTORY DETAIL column to be made available somehow.
I admit that I missed something crucial, so please kindly mention about it.
Any help would be greatly appreciated.
I was able to create a new column by creating a Transaction Line Field that contains two separate fields which are applied to Sales Orders.
For the INVENTORY DETAIL, I went to Customization > Entry Forms and copied the link for "Standard Inventory Detail Form" and then produced my own HTML code inside the Default Value when creating a new Transaction Line Field.
For AMOUNT, I created a new transaction line field and then set the Default Value as the appropriate value found in https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2018_1/schema/record/billingaccount.html and I used the curly bracket notation {} to fetch the data for the edittable AMOUNT but changed the Access to View-only, which makes this exactly what I needed.
After previewing the changes into an existing Sales Order, I can see my results reflected as expected. Consider this question solved.

Proforma Invoice for Sales Order

I have to design the Proforma Invoice by using the Crystal Report SAP B1 and If there are multiple line items in the sales order and we wanted to get the Proforma Invoice copy for a particular line item means how to generate that?
Please assist me..
I'm assuming you're not sure where to even start with this since your question is very vague (this is why you're being downvoted).
A good starting point is obviously using the standard SO Crystal Report Layout in the system and checking off the "New Page After" option in the Details section of the Crystal Report (this will create a new page after every line item). Then modify the format of your Page Header and Footer to accommodate your "Proforma Invoice Copy" requirement.
Give us more detail of where you're stuck and maybe we can be more helpful.

building a form with dynamic fields in progress 4gl

I am trying to display a list of open indents with check boxes before them each line. Based on the selection a report will be generated next with further details.
Table: xxind_mstr (xxind_nbr, xxind_shipto, xxind_askedby, xxind_date).
Is there any way that I can bring the records from xxind_mstr and place them in the FORM with check boxes ?
Note: This only works if dynamic. Never hardcode this approach.
Name each check box with the value of ROWID(xxind_mstr).
This way on the post you can read back through the each xxind_mstr getting the value of the the rowid.
Rod
I'd like some more info, just to know if I'm not talking rubbish here. You want to display the records in xxind_mstr as checkboxes, then upon selection of the report setup, fire the report respecting the checkboxes flagged? If so, then I'd use a browse pre-built with a temp-table containing the xxind_mstr records, and a "flagged" field, this being a logical view-as checkbox, and when they run the report, do a
FOR EACH ttxxind_mstr WHERE flagged = true, and you should have what you want.

Crystal Reports: Showing only first record in each group

I searched to get the required answer but not found exactly what iam looking for - please help me.
Please follow the steps i made in crystal report:
Using crystal report command (i created a query to get the required business number)
--> which gets 5 Business numbers
Note: Every business is having many receipt numbers (1st installment receipt, 2nd installment receipts... like that....) - these receipt details are stored in table_receipts.
In table_business - i have all details about business number, customer, product details...
Please understand the links:
table_business - table_customer - table_product - table_receipts
Relationship between tables are:
table_business.Bno=table_receipts.Bno
table_customer.Cno=table_customer.Cno
table_product.Pno=table_product.Pno
After creating the crystal report command; i just drag the required table in crystal report (table_business, table_customer,table_product,table_receipts)
Now i created a group for Business Number "BNo"
I need to display all the required details about that selected Business Number using parameter - its coming fine except receipts.
I mean its showing all receipts (all installment receipts). I need to display only the first receipt only (i.e: receipt number starst with letter "F" )
Hope you understand my requirement - Please help me in this regard.
Expecting your valuable reply.
Regards,
Sensa.
Here is what I tried for the same issue and it worked. It's a 2 step process involving using Running Total Fields and Suppressing in Section Expert.
First step is to create a Running Total Field (Right under Parameter Fields)
Right click on it and click New and name your field i.e. CountFirstOnly
On the left you will see the fields you can perform functions on.
Select the receipts field. Bring that over to field to summarize and select count.
Under Evaluate select For Each Record
Reset on Change of Group and select your grouping, in this case business number and click OK
Drag that field into your report.
Part 2: Section Expert
Bring up the section expert on details and click on the suppress X-2 button
Your formula should be: CountFirstOnly >1
Click OK
Refresh your report
Hopefully this did the trick.
You should be able to do this by creating a forumla for suppressing the field (table_receipts.Rno).
Right-click the {table_receipts.Rno} field and select Format Field...Common tab...Check the 'Suppress' box and then click the X-2 box to the right. When the new window appears paste this:
not ({table_receipts.Rno} startswith "F")
I might have a solution for you.
1)Open the ‘Report’ menu then select ‘Section Expert’
2)Select the ‘Details’ section from the left hand menu
3)Tick the ‘Suppress No Drill-Down’ option and click on the icon to the right of it and in the formula option put
4)RecordNumber > 1
This should suppress the whole ROW/Record and not just the field. I saw your problem from this thread, I needed the exact same solution and this worked.
show only in the first row in crystal reports details section
It sounds as though the simplest way to meet this requirement would be to add a selection condition to the report - something like:
Left({table_receipts.Rno},1) = "F"
This should ensure that only the associated products and customers for the first receipt for each business are reported.