Calculated column won't display when workflow is run - sharepoint

I have created a calculated column that pulls the text from another site column so I can display just the text. To achieve this I have created a SharePoint 2010 workflow which sets column B with colum A value. I then have a calculated column that will take the text from column B and strip the unnecessary characters and leave just what I want.
I have a workflow which finally takes the two calculated columns and replaces the value inside the Title column for the current item. I have the workflow kick off whenever a new item is created, changed etc. When I create an item it will change the title but the title displays Error;#256 - Error;#256. If I then run the workflow on the item again the correct values are inserted. So I thought the workflow wasn't waiting until the calculated columns were calculated before setting the Title so I modified my workflow as below but I still have this issue.
Laptops is passed onto LaptopString which then LaptopTextOnly is the calculated column that uses LaptopString to get the intended value I am looking for.

This was awhile ago but for anyone else having the issue, I resolved it by having the workflow wait for the calculated column to not contain the word 'error.'

Related

Can you create a row in Excel using Zapier that includes calculated cells and then retrieve those values?

We use a spreadsheet to generate incremental numbers based on a variable. The variable has 4 different options and each one coincides with a numerical prefix. The first two representing the year.
Option/Prefix
220 (220000,220001,220002 etc.)
227
228
229
There are 4 columns one for each option. When you insert your initials in the correct column, the corresponding number column is incremented by 1 and the correct number is returned. Normally the cells at the right are hidden
This was part of my effort to eliminate duplicate values from being used by accident but it still happens at times so I am trying to set it up to have Zapier monitor our CRM and when it reads a record calling for new number, it will add text to the table in order to generate the number and then retrieve it and insert it into the record in the CRM.
The spreadsheet is on Sharepoint online.
Will formulas be calculated when the Table is updated by Zapier?
How do I find the row afterwards and return the value to Zapier?
When I tried to test the 'find row' action using a value that is the result of a formula the search fails but if it is entered text, the search works.
First to answer the original question, I put the same question to Zapier support and they responded that I might get cached data if I access the file more than once in a short period. So I sought an alternative and came up with this solution:
The process begins with a dropdown in the CRM where the user selects the type of number they require (Trigger Value - TV).
The Zap polls the CRM for changes and is filtered to continue only if a TV exists.
I ended up creating a helper column with the word 'zap' in every cell from the target row and below (A). I also added a column to hold the TV (C) and the zap will updates this column later on. I modified the cells on the right to fill every row with the highest value in each column (I:L) using this formula:
The first part is only to stop the numbers from displaying beyond the target row. The target row is the row in green and is located below the final values. (Row ID:536 in this example)
This is the row we want the Zap to find. The lookup value in the 'Find Row Action' is 'zap' and the lookup column is '1'.
In this example, the next row that the Zap will find and return is 536.
Now, using a Formatter Action (Text), I entered this formula:
Based on the TV retrieved from the CRM, the Formatter will return the value from the corresponding column and increment it by 1. This value will then be returned to the CRM.
The next step is to update the Target Row (ID:536 in this example) in Excel.
It updates Column A (or 1) with the formula ="" which removes the word 'zap' and Column C (or 3) is updated with the TV from the CRM. Now the sheet is ready for the next run.
The last thing is to update the record in the CRM by deleting the TV.
The middle columns (D:G) are not required for the Zap. They are there just to make it easier to see the results if you have to view the file.
In a given year, we will use less than 1500 rows so I copied the formulas down to row 2000. Since the first two digits are based on the year, and because VBA will not run when the hosted file is opened, it will unfortunately require manual intervention to reset the spreadsheet at the beginning of each year. The drawback is that it uses 6 tasks for each number retrieved but at least we won't end up with duplicate numbers being used due to human error.

How to create a customizable column in Sharepoint

I want to create a customizable column where a value can be passed by linking another column (default setting) but can be overwritten manually.
Example:
For every month of a year there’s a column. For every month there’s a fixed budget that doesn’t change in standard cases. Sometimes it might happen that there a changes for a single month so it’s necessary to change that single value of that column manually.
When I choose a calculated value as default value I receive an error message because of a reference to another column. When I choose to only have values linked to another column I can’t do any manual changes afterwards.
Is there any trick to resolve this problem?
Use a workflow. Here is the concept:
create a new list item. Leave the month values blank, but put a value into a key field
run a workflow that triggers when a new item is created
let the workflow copy the value from the key field into the months
Now the month values have a variable amount pre-entered and they can be changed if required.

SharePoint 2013 Make Calculated Column based on Custom Column

In SharePoint 2013, I am trying to create a Calculated Column that is a shortened display of another Custom Column. The Calculated Column would just show the first 100 characters concatenated with "..." like in the following formula:
=LEFT([CustomColumn],100)&"..."
However, every time that I go to create this calculated column, SharePoint doesn't provide my [CustomColumn] in the "Insert Column:" list. If I type it in anyway, SharePoint throws an error.
Details on my Column, List, and Site below:
Col. Type: Multiple lines of text
Col. Group: Custom Columns
Col. Text Type: Enhanced rich text
List Content Type: Custom Type Inherits from Event
Site Type: Publishing
Also, to no avail, I found this similar post, but creating the Site Column and Calculated Column before adding it to the Content Type did not work for me.
Anyone out there know how to coax SharePoint into submission?!
According to this forum response from a Microsoft representative Multiple Lines of Text columns cannot be used in Calculated columns. The workaround that I always use for Calculated column limitations is to create a new field that will serve as your "fake" Calculated column (in your case probably a single line of text field) and then set the value using a workflow. If you do not want users to be able to manually edit the "fake" Calculated column then hide it from the new/edit forms using the SharePoint Manager 2013.
Note - This method is also useful for doing Calculated columns that use Lookup columns.

Event Receiver for lookup column value added should be updated in another column in same Sharepoint list

I am having the list named "XXX". In that list i have two columns named Status, which is the choice column and StatusLookup, which is lookup column. The both column should have the same choices values namely Open, Pending Approval, Cancelled. If add new item in sharepoint list, if i choose "Open" in Status column it should be automatically updated in StatusLookup column without any manual entry.
I need to know whether there is any way to update the StatusLookup column by choosing the value in Status column in Sharepoint list by using Event Receivers?
Can you please reply me as soon as possible?
Thanks,
Sugu.....
Sorry this is late but I think instead of a lookup column you want the second column to be a computed column. Then you want to make the formula be "=[choiceColumn]". The computed columns should then always automatically update to the value in the choice column.
Supposedly you can then create a lookup column on the computed column from another list but that didn't work for me (computed column wasn't availalbe for a lookup column) which is how I ultimately found this post. Let me know if you solved your problem.
-Rob

get the average of two columns in views using lotus notes formula

How to get the average of two columns in views using lotus notes formula
Create a new column in your view to display the average. You'll add a formula to this column to calculate the average.
If the two columns you wish to average are simply based on items in your documents, then add this formula:
(Column1 + Column2) / 2
If your columns are more complex, for example they contain calculations themselves, then you'll want to refer to the column using its programmatic value. On each column, right-click on the column and then click "Column Properties". Select the last tab and set the Programmatic name to some text, for instance Calc1 and Calc2. Then use this formula in your third column:
(Calc1 + Calc2) / 2
If you want to display the average of 2 columns then Bluefoot's comment referring to another question is what you require. However, if you also want to display the result in a subsequent third column, then you have a bit more of a problem.
You will need to write a scheduled agent that takes the average but then writes the result into a field on to the document, and then use that field as the value to be displayed in the 3rd column. I say a scheduled agent as you could have this run hourly or daily as required to update values. If a user changes the values that would cause a re-calc. You can clear the new field pending update of by the scheduled agent. There are still other ways to do this, depends on requirements.

Resources