My Requirement is as below I have one share point list(L1) in SharePoint 2013. When I Update the list item(one record in list) , I should Auto Generate flat file (comma separated) with file content as updated item record.
How can i achieve this?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You can create event receiver for that.
However, the task looks quite strange. What is the reason you need a file for any change? Version control? If so, then did you consider using built-in versioning for that?
UPDATE1. As I understand from your comment, you need to keep other system with up-to-date info from SharePoint, so you have the following ways:
Load data from SP on-demand from the system. You can do it using SharePoint APIs (REST, CSOM, SSOM, etc). I mean, when you need this data from SP you can just load all the necessary data you need. It can work for small lists.
If you have a lot of data, you can create caching on the target system and update only necessary items in the cache by getting notification from SP. So, you create an event receiver in SP that passes changed item id to the target system and it updates only this item, or you can pass all the item data with this request. Also, you can create and update the file using this event receiver. Which way is simpler, depends on the target system.
UPDATE 2. If you can't use Visual Studio, you can try to create a workflow which will start on item update. In this workflow you can call some WebService to notify about changes. Unfortunately, as far as I remember, where are no built-in possibility to create a file with the content of the item in native SharePoint Workflows. There are some in Nitex Workflows, but as far as I understanf, you don't have it. Unfortunately, I don't know the way to create file without using VS if the workflow approach doesn't work for you.